[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Portability/Compatability between GNUstep <---> Cocoa...

From: Kazunobu Kuriyama
Subject: Re: Portability/Compatability between GNUstep <---> Cocoa...
Date: Tue, 13 Jan 2004 22:25:26 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1

Nicola Pero wrote:

Not sure what you are asking for. But if you only want to find out if
your code compiles in a GNUstep or a MacOSX environment a test for
#ifdef GNUSTEP should do.

This seems to be just the one I'm seeking for. Which file defines the
macro?  Or is this
one defined by each programmer?

The problem with #ifdef GNUSTEP is that, AFAIR, it is still defined if you use GNUstep-make to build under OS X. That's no good. Apple's GCC always defines __APPLE__ and there's also MAC_OS_X (or is it MAC_OSX, I can never

It would be nice if someone with a MacOS-X setup could check this out...

I've tested it extensively with Renaissance both on GNUstep and MacOSX and
it works perfectly well.

Let me state this again to remove the shadowy confusion:

The macro "GNUSTEP" *does* work to determine if you are compiling against
gnustep frameworks or non-gnustep frameworks.


If anyone has a problem with it in that it doesn't behave in that way for
them, please provide a clear report of the problem you are having with
example source code which doesn't work, and (if there is indeed a problem)
I'll take care of fixing it asap.

So I rely on you.  Thanks a lot. :-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]