http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42293
Nicola Pero changed:
What|Removed |Added
CC||nicola at gcc dot gnu.org
--- Comment #7 fr
--- Comment #6 from ktietz at gcc dot gnu dot org 2009-12-18 15:53 ---
In mingw-w64 headers we do the following
#if !defined(__OBJC__) && !defined(__OBJC_BOOL) && !defined(__objc_INCLUDE_GNU)
#define BOOL WINBOOL
#endif
For local build for obj-c we use a patched objc.h defining __OBJC_B
--- 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,*LPWI
--- Comment #4 from ktietz at gcc dot gnu dot org 2009-12-08 11:41 ---
(In reply to comment #3)
> Created an attachment (id=19235)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19235&action=view) [edit]
> Diff file
>
> This allows me to compile it, but quoting from windef.h: /* FI
--- Comment #3 from d dot g dot gorbachev at gmail dot com 2009-12-05
03:55 ---
Created an attachment (id=19235)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19235&action=view)
Diff file
This allows me to compile it, but quoting from windef.h: /* FIXME: Is there a
good solution
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-12-05 01:06 ---
/tmp/i686-pc-mingw32/include/windef.h:234:17: error: conflicting types for
'BOOL'
/tmp/gcc-4.5/libobjc/objc/objc.h:42:24: note: previous declaration of 'BOOL'
was here
Hmm, looks like the order of include files coul
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2009-12-05
00:51 ---
Created an attachment (id=19232)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19232&action=view)
Compiler error messages
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42293