Do not use deprecated stuff that only glibc now implements

This commit is contained in:
Jari Ronkainen 2018-07-03 19:34:09 +03:00
parent e2b7a68db4
commit 687b95b41f

View file

@ -181,10 +181,8 @@ namespace nv
{ {
#if NV_OS_WIN32 || NV_OS_XBOX || NV_OS_DURANGO #if NV_OS_WIN32 || NV_OS_XBOX || NV_OS_DURANGO
return _finite(f) != 0; return _finite(f) != 0;
#elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD || NV_OS_ORBIS #elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD || NV_OS_ORBIS || NV_OS_LINUX
return isfinite(f); return isfinite(f);
#elif NV_OS_LINUX
return finitef(f);
#else #else
# error "isFinite not supported" # error "isFinite not supported"
#endif #endif
@ -196,10 +194,8 @@ namespace nv
{ {
#if NV_OS_WIN32 || NV_OS_XBOX || NV_OS_DURANGO #if NV_OS_WIN32 || NV_OS_XBOX || NV_OS_DURANGO
return _isnan(f) != 0; return _isnan(f) != 0;
#elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD || NV_OS_ORBIS #elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD || NV_OS_ORBIS || NV_OS_LINUX
return isnan(f); return isnan(f);
#elif NV_OS_LINUX
return isnanf(f);
#else #else
# error "isNan not supported" # error "isNan not supported"
#endif #endif