diff --git a/code/nel/include/nel/misc/common.h b/code/nel/include/nel/misc/common.h index 6363fc25d..04553c2ab 100644 --- a/code/nel/include/nel/misc/common.h +++ b/code/nel/include/nel/misc/common.h @@ -34,7 +34,6 @@ # include # include #else -# include # include # include #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 }