I was able to track down the culprit... it's GNUstepBase/preface.h, which includes windows.h on line 64. I'd submit a patch but I don't have -base's source on Windows. In any case, putting the define/undef around the windows.h include fixes the problem for me.
Stef On Sun, Sep 25, 2011 at 12:27 PM, Stefan Bidi <[email protected]> wrote: > I'm still getting the error. Corebase doesn't include any Windows headers, > so it's something that is included as part of > GNUstepBase/GSVersionMacros.h. Adding the #define around > GNUstepBase/GSVersionMacros.h doesn't do anything for me, same error but > replaced with WINBOOL instead of BOOL. How are other GNUstep > libraries/applications not running into this same problem? > > > On Sun, Sep 25, 2011 at 12:21 PM, David Chisnall <[email protected]>wrote: > >> I had the same problem with libobjc2 on Windows. I worked around it by >> doing something like this: >> >> #define BOOL WINBOOL >> #include <windows_stuff.h> >> #undef BOOL >> >> And then including Objective-C headers. >> >> David >> >> On 25 Sep 2011, at 18:19, Stefan Bidi wrote: >> >> > I booted into Windows today and figured it would be a good idea to try >> corebase there. I ran into some problems that I was able to fix, but I >> don't know what to do with the set of error I'm getting now. It's about >> BOOL being defined by both windef.h and objc/objc.h. I'm sure I'm screwing >> something up, can anyone more familiar with Windows please shed some light? >> I've attached the output. >> > >> > Stef >> > <output>_______________________________________________ >> > Discuss-gnustep mailing list >> > [email protected] >> > https://lists.gnu.org/mailman/listinfo/discuss-gnustep >> >> >> -- Sent from my brain >> >> >
_______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
