------- 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: /* FIXME: Is there a > good solution to this? */ >
Well, this issue is known to me. Changing the order here can work-a-round it, but possibly leads to other issues, as windef.h will redefine it. In mingw-w64 platform headers we worked-a-round this by checking for __OBJC__ to check, if we shouldn't define BOOL. But of course this also just a hack. The real issue for w32/w64 targets is, that type BOOL is part of the platform header API definition, which conflicts here. Kai -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42293