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