The GNUstep gui library is a library of graphical user interface classes written completely in the Objective-C language; the classes are based upon Apple's Cocoa framework (which came from the OpenStep specification). *** Larger patches require copyright assignment to FSF. please file bugs here. ***
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
The Windows SDK declares
BOOL
as anint
. Objective C definesBOOL
as achar
. Those two types clash. MinGW's implementation of the Windows SDK uses theWINBOOL
type to avoid this clash. When compiling natively on Windows, we need to manually defineWINBOOL
. MinGW will define_DEF_WINBOOL_
if it has definedWINBOOL
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