discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Embedded GNUstep - new rumours about embedded MacOS X and call for s


From: Richard Frith-Macdonald
Subject: Re: Embedded GNUstep - new rumours about embedded MacOS X and call for support
Date: Sun, 24 Dec 2006 10:00:31 +0000


On 24 Dec 2006, at 09:30, Fred Kiefer wrote:

Richard, for this I would need the declaration of a version MacOS 10.4, how does this look like? I only found GS_API_MACOSX. I thing, we should have symbol similar to the ones Apple is using and have them on the same
detail level.

I haven't bothered adding specific symbols for different versions, since the symbols evaluate to six digit numeric constants anyway (where each pair of digits is a version number ... major,minor, and subminor). So version 10.4 is 100400, 10.4.1 is 100401 etc

So if you write

#if OS_API_VERSION(100400, GS_API_LATEST)
// declarations here
#endif

All your declarations will be seen unless a programmer builds with GS_OPENSTEP_V set to a version earlier than 100400, and the generated documentation will tell you that your declarations are compatible with MacOS-X 10.4.0 onwards.

See http://www.gnustep.org/resources/documentation/Developer/Base/ Reference/index.html for more details.

Anyway, there is no problem adding more preprocessor constants rather than using the numeric values if you want ... we just put them in GSVersionMacros.h

I I guess we could use

#define GS_API_MACOSX_4_2       100402

or perhaps copy Apple with

#define MAC_OS_X_VERSION_10_4_2 100402




reply via email to

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