This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/42293] Can't build ObjC runtime library with GC for W32 target
- From: "d dot g dot gorbachev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Dec 2009 23:43:48 -0000
- Subject: [Bug objc/42293] Can't build ObjC runtime library with GC for W32 target
- References: <bug-42293-16926@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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