From David Guthrie, OSX marco reworking to better handling different OSX versions.

This commit is contained in:
Robert Osfield
2006-02-05 21:53:37 +00:00
parent 39381c6fe7
commit 4bc13ec71b
2 changed files with 22 additions and 8 deletions

View File

@@ -16,10 +16,15 @@
#include <math.h>
// for OSX users :
// comment in if you want backwards compatibility with 10.1.x versions
// otherwise you'll have problems with missing floorf and __isnan*()
// #define APPLE_PRE_10_2
//certain math functions were not defined until 10.2
//so this code checks the version so it can add in workarounds for older versions.
#ifdef __APPLE__
#include <AvailabilityMacros.h>
#if !defined(MAC_OS_X_VERSION_10_2) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_2)
#define APPLE_PRE_10_2
#endif
#endif
#if defined(_MSC_VER)
#include <float.h>