From David Guthrie, OSX marco reworking to better handling different OSX versions.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user