Richard Frith-Macdonald wrote:
On 12 Jan 2004, at 13:50, 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.
Use STRICT_MACOS_X
OK, I undestand that stuff well. But is this macro defined in Cocoa's
headers, too?
Otherwise, I feel the instruction above is applied to code written
only for GNUstep,
not for code compatible with both GNUstep and Cocoa.
In addition, my question is about real incompatibility, not about any
class/method found both in
GNUstep and Cocoa. I seek for such a predefined macro that enables a
conditional complication like
#if defined SOME_MACRO
<GNUstep-proper code comes here>
#else
<Cocoa-proper code comes here>
#endif
In other words, I seek for a macro which differentiate GNUstep headers
and Cocoa ones,
not a macro which can be used to decide whether GNUstep's Cocoa API is
used or not.