mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 23:56:15 +00:00
Fixed: make it compile on mac
This commit is contained in:
parent
783c3021b7
commit
709a2c8632
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,6 @@
|
||||||
# include <process.h>
|
# include <process.h>
|
||||||
# include <intrin.h>
|
# include <intrin.h>
|
||||||
#else
|
#else
|
||||||
# include <cmath>
|
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -206,7 +205,11 @@ inline double isValidDouble (double v)
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
return _finite(v) && !_isnan(v);
|
return _finite(v) && !_isnan(v);
|
||||||
#else
|
#else
|
||||||
|
#ifdef _STLPORT_VERSION
|
||||||
return !isnan(v) && !isinf(v);
|
return !isnan(v) && !isinf(v);
|
||||||
|
#else
|
||||||
|
return !std::isnan(v) && !std::isinf(v);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue