This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc/42293] Can't build ObjC runtime library with GC for W32 target



------- Comment #5 from d dot g dot gorbachev at gmail dot com  2009-12-09 23:43 -------
> In mingw-w64 platform headers we worked-a-round this by checking
> for __OBJC__ to check, if we shouldn't define BOOL.

The hack exists in mingw32 headers, too:

   230  typedef int WINBOOL,*PWINBOOL,*LPWINBOOL;
   231  /* FIXME: Is there a good solution to this? */
   232  #ifndef XFree86Server
   233  #ifndef __OBJC__
   234  typedef WINBOOL BOOL;
   235  #else
   236  #define BOOL WINBOOL
   237  #endif
   238  typedef unsigned char BYTE;
   239  #endif /* ndef XFree86Server */
   240  typedef BOOL *PBOOL,*LPBOOL;

But libobjc is written in plain C, not in Objective-C. So when compiling,
__OBJC__ isn't defined and hack does not work.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42293


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]