Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define WINBOOL on non-MinGW platforms #52

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Define WINBOOL on non-MinGW platforms #52

merged 1 commit into from
Sep 17, 2024

Commits on Sep 17, 2024

  1. Define WINBOOL on non-MinGW platforms

    The Windows SDK declares BOOL as an int.  Objective C defines BOOl as a char.
    Those two types clash.  MinGW's implementation of the Windows SDK uses the WINBOOL
    type to avoid this clash.  When compiling natively on Windows, we need to manually
    define WINBOOL.
    MinGW will define _DEF_WINBOOL_ if it has defined WINBOOL so we can use the same trick
    here.
    See https://github.com/mingw-w64/mingw-w64/blob/master/mingw-w64-headers/include/ntdef.h#L355
    qmfrederik committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    e77e0b6 View commit details
    Browse the repository at this point in the history