[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 00:34:34 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1

Fred Kiefer wrote:

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.

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

reply via email to

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