Skip to content

added ability to crosscompile using MXE#13261

Open
hax0rbana-adam wants to merge 1 commit intokeepassxreboot:developfrom
hax0rbana-adam:fix-crosscompile
Open

added ability to crosscompile using MXE#13261
hax0rbana-adam wants to merge 1 commit intokeepassxreboot:developfrom
hax0rbana-adam:fix-crosscompile

Conversation

@hax0rbana-adam
Copy link
Copy Markdown

Compiling on Windows is case insensitive, so using a capital "W" in Windows.h is fine. However, when cross compiling for Windows, other operating systems require the case to be correct, which prevents this from being compile with MXE.

This change fixes the case of the windows header file in the include statement, and makes some explicit casts to be compatible with MXE.

Testing strategy

  • Compile on Linux for Windows using MXE
  • Compile on Windows to verify this change didn't break anything over there
  • Compile on Linux, for Linux to verify nothing broke there

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

@droidmonkey
Copy link
Copy Markdown
Member

We dont use old style casts, switch them to static_cast please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants