Use isnan() instead of isnanf() on linux
isnanf() is deprecated since C99
This commit is contained in:
parent
6474f25934
commit
99bcaf719c
@ -185,10 +185,8 @@ namespace nv
|
|||||||
{
|
{
|
||||||
#if NV_OS_WIN32 || NV_OS_XBOX
|
#if NV_OS_WIN32 || NV_OS_XBOX
|
||||||
return _isnan(f) != 0;
|
return _isnan(f) != 0;
|
||||||
#elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_NETBSD || NV_OS_OPENBSD || NV_OS_ORBIS
|
#elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_NETBSD || 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
|
||||||
|
Loading…
Reference in New Issue
Block a user