mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Added MacOS-X compatibility version constants.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24235 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0daf7ae817
commit
5b17cc6858
3 changed files with 28 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-12-25 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Additions/GNUstep/GSVersionMacros.h:
|
||||
Added MacOS-X compatibility version constants.
|
||||
|
||||
2006-12-15 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSNumberFormatter.m:
|
||||
|
|
|
@ -98,6 +98,12 @@ notice and this notice are preserved.
|
|||
version ranges using the
|
||||
<ref type="macro" id="GS_API_VERSION">GS_API_VERSION</ref>
|
||||
macro.<br />
|
||||
For MacOS-X compatibility, if this constant is not defined
|
||||
and MAC_OS_X_VERSION_MAX_ALLOWED <em>is</em> defined, then
|
||||
GS_OPENSTEP_V is defined to be MAC_OS_X_VERSION_MAX_ALLOWED.<br />
|
||||
Similarly, for MacOS-X we define MAC_OS_X_VERSION_10_2,
|
||||
MAC_OS_X_VERSION_10_3 etc as the appropriate numeric version
|
||||
numbers.
|
||||
</desc>
|
||||
</deflist>
|
||||
<p>
|
||||
|
|
|
@ -38,6 +38,23 @@
|
|||
#undef NO_GNUSTEP
|
||||
#endif
|
||||
|
||||
/*
|
||||
* For MacOS-X compatibility, we define the MacOS-X version constants and
|
||||
* we allow MAC_OS_X_VERSION_MAX_ALLOWED instead of GS_OPENSTEP_V
|
||||
*/
|
||||
|
||||
#ifndef MAC_OS_X_VERSION_10_2
|
||||
#define MAC_OS_X_VERSION_10_2 100200
|
||||
#define MAC_OS_X_VERSION_10_3 100300
|
||||
#define MAC_OS_X_VERSION_10_4 100400
|
||||
#endif /* MAC_OS_X_VERSION_10_2 */
|
||||
|
||||
#ifndef GS_OPENSTEP_V
|
||||
#ifdef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define GS_OPENSTEP_V MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */
|
||||
#endif /* GS_OPENSTEP_V */
|
||||
|
||||
/*
|
||||
* NB. The version values below must be integers ... by convention these are
|
||||
* made up of two digits each for major, minor and subminor version numbers
|
||||
|
|
Loading…
Reference in a new issue