discuss-gnustep
[Top][All Lists]
Advanced

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

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


From: Fred Kiefer
Subject: Re: Portability/Compatability between GNUstep <---> Cocoa...
Date: Mon, 12 Jan 2004 16:16:55 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821

Kazunobu Kuriyama wrote:
Recently, I've made some non-trivial programs based on some Cocoa programming books and found some concrete incompatiblilities between GNUstep and Cocoa. When I come across such an incompatibility, I'm always at a loss because GNUstep doesn't provide any preprocessor macro which can be used just for differentiating GNUstep code and Cocoa one. I feel both STRICT_OPENSTEP and NO_GNUSTEP or their
negations are not appropriate for that purpose.

Is there already any macro, or an established idiom (i.e. GNUstep conventions) for the purpose?

If not, I think it would be better for us to have a certain macro predefined in GSConfig.h, say __GNUSTEP_LIBRARY__, to distinguish GNUstep's headers from those of Cocoa.

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.





reply via email to

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