[Top][All Lists]

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

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

From: Alex Perez
Subject: Re: Portability/Compatability between GNUstep <---> Cocoa...
Date: Mon, 12 Jan 2004 13:10:20 -0800 (PST)

> 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?
You can always just use #ifdef MAC_OSX (or is it MAC_OSX?) or #ifdef 
__APPLE__ if you want your code to compile one way under OS X and one way 
under GNUstep.

reply via email to

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