Fixes for Max OSX build from Bob Kuehne.

This commit is contained in:
Robert Osfield
2002-04-19 16:22:25 +00:00
parent b7d1036bb2
commit 1131be56dc
2 changed files with 7 additions and 2 deletions

View File

@@ -52,6 +52,10 @@
#define fabsf (float)fabs
#endif
#ifndef isnanf
#define isnanf (float)isnan
#endif
#endif
namespace osg {

View File

@@ -108,6 +108,8 @@
#include <osg/TexEnv>
#include <osg/CullFace>
#include <osg/Billboard>
#include <osg/Math>
#include <osgDB/ReadFile>
#include <iostream>
@@ -115,7 +117,6 @@
#include <map>
#include <string>
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <stdarg.h>
#include <limits.h>
@@ -598,7 +599,7 @@ inline int IsNaNorInf( float f )
case FP_PINF : return 1;
default : return 0;
}
#elif defined(__FreeBSD__) || defined(__linux) || defined(__CYGWIN__)
#elif defined(__FreeBSD__) || defined(__linux) || defined(__CYGWIN__) || defined(__DARWIN_OSX__)
return isnanf(f) || isinf(f);
#elif defined(WIN32)
return _isnan(f) || !_finite(f);