Fix definition of GS_OSX_ADJUST, which got things backward.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36874 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2013-07-11 22:03:17 +00:00
parent 13ac980d9f
commit 15ebc62649
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2013-07-11 Wolfgang Lux <wolfgang.lux@gmail.com>
* Headers/GNUstepBase/GSVersionMacros.h: Fix definition of
GS_OSX_ADJUST, which got things backward (converting a GNUstep
style version into an OS X version instead of the other way
around). Also make sure that MAC_OS_X_VERSION_MAX_ALLOWED gets
converted when used in the definition of GS_OPENSTEP_V.
2013-07-09 Graham Lee <iamleeg@gmail.com>
* Source/GNUmakefile:

View file

@ -46,7 +46,7 @@
/* Define the GS_OSX_ADJUST() macro to adjust OSX style version macros
* to GNUstep style version macros.
*/
#define GS_OSX_ADJUST(V) ((V) < 10000 ? (V) : ((V)/10*100 + (V)%10*10))
#define GS_OSX_ADJUST(V) ((V) >= 10000 ? (V) : ((V)/100*10000 + (V)%100*10))
/* Define OSX compatibility version macros if necessary.
*/
@ -67,7 +67,7 @@
*/
#ifndef GS_OPENSTEP_V
#ifdef MAC_OS_X_VERSION_MAX_ALLOWED
#define GS_OPENSTEP_V MAC_OS_X_VERSION_MAX_ALLOWED
#define GS_OPENSTEP_V GS_OSX_ADJUST(MAC_OS_X_VERSION_MAX_ALLOWED)
#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */
#endif /* GS_OPENSTEP_V */