delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/08/08:44:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <9912081239.AA01562@mlx.com>
Mime-Version: 1.0 (NeXT Mail 3.3 v118.2)
From: MarketLogix <mlx AT mlx DOT com>
Date: Wed, 8 Dec 99 04:38:27 -0800
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Cygwin v1.0 windows headers and ObjC
Reply-To: mlx AT san DOT rr DOT com

Hello all,

Found that you can't build ObjC projects with the
stock Cygwin v1.0 CD release out of the box.
And I'm not just talking about the lack of an
libobjc.a, objc headers and cc1objc.exe.

I made these changes to get it to work but I'm
not sure if this won't screw something else up
since I don't generally compile anything other
than ObjC and, of course plain C.  Never C++.

Basically 2 header files.

#1

basetyps.h:20

WAS>
#define interface	struct

IS>
#ifndef __OBJC__
#define interface	struct
#endif

I was informed by another subscriber that this line
actually appears within an #ifdef __cplusplus block
in the M$ development counterpart.  That would fix
it too (if not mixing languages, I guess).

#2

windows.h:120

WAS>
#ifdef __OBJC__
/* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
   but undefining it causes trouble as well.
*/
#if 0
#undef BOOL
#endif
#endif

IS>
#ifdef __OBJC__
/* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
   but undefining it causes trouble as well.
*/
#undef BOOL
#endif

What sort of trouble ?  Why ?
Wasn't this problem already solved
in the previous set of windows headers ?

I guess I propose this.  I know this is not a
patch but I hope it gains in clarity what it
lacks in efficiency.

Steve B.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019