From d9471c0937a0edf782660801968b98a0c85e5025 Mon Sep 17 00:00:00 2001 From: Jari Ronkainen Date: Sun, 29 Jul 2018 22:41:31 +0300 Subject: [PATCH] Use standard instead of obsolete functions on linux --- src/nvmath/nvmath.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/nvmath/nvmath.h b/src/nvmath/nvmath.h index 61aa721..eaf85f4 100644 --- a/src/nvmath/nvmath.h +++ b/src/nvmath/nvmath.h @@ -178,10 +178,8 @@ namespace nv { #if NV_OS_WIN32 || NV_OS_XBOX || NV_OS_DURANGO 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); -#elif NV_OS_LINUX - return finitef(f); #else # error "isFinite not supported" #endif @@ -193,10 +191,8 @@ namespace nv { #if NV_OS_WIN32 || NV_OS_XBOX || NV_OS_DURANGO 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); -#elif NV_OS_LINUX - return isnanf(f); #else # error "isNan not supported" #endif