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]

Re: libobjc/4450: make install failed: /usr/include/win32api/windef.h redefined BOOL


> Synopsis: make install failed: /usr/include/win32api/windef.h redefined
BOOL
> 
> State-Changed-From-To: open->analyzed
> State-Changed-By: rodrigc
> State-Changed-When: Sun Feb 24 12:06:49 2002
> State-Changed-Why:
>    This is a bug in the objective-C runtime library.

>
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4450

This has been a long-standing conflict between libobjc and the w32 api.
See for example this thread in mingw list archives :
http://www.geocrawler.com/archives/3/6013/2001/7/100/6234104/
 

The following change would make it easier to resolve the conflicts by
making the ObjC sizeof(BOOL) same as w32 sizeof(BOOL), but I'm not a
serious user of objC so I don't know what other effects it will have. 

--- objc.h.orig	Sun Sep 05 04:09:20 1999
+++ objc.h	Mon Feb 25 12:46:58 2002
@@ -36,7 +36,7 @@ extern "C" {
 /*
 ** Definition of the boolean type.  
 */
-#ifdef __vxworks
+#if defined (__vxworks) || defined (_WIN32)
 typedef int BOOL;
 #else
 typedef unsigned char  BOOL; 

Comments from ObjC community?

Danny



http://movies.yahoo.com.au - Yahoo! Movies
- Vote for your nominees in our online Oscars pool.


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