Commit 292e14a7 authored by Uwe Schulzweida's avatar Uwe Schulzweida

Replaced isnan() by std::isnan().

parent c062880b
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
#include "config.h" #include "config.h"
#endif #endif
#include <cmath>
#include <string.h> #include <string.h>
#include <math.h>
#ifdef __xlC__ /* performance problem on IBM */ #ifdef __xlC__ /* performance problem on IBM */
#ifndef DBL_IS_NAN #ifndef DBL_IS_NAN
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#else #else
#ifndef DBL_IS_NAN #ifndef DBL_IS_NAN
#if defined(HAVE_DECL_ISNAN) #if defined(HAVE_DECL_ISNAN)
# define DBL_IS_NAN(x) (isnan(x)) # define DBL_IS_NAN(x) (std::isnan(x))
#elif defined(FP_NAN) #elif defined(FP_NAN)
# define DBL_IS_NAN(x) (fpclassify(x) == FP_NAN) # define DBL_IS_NAN(x) (fpclassify(x) == FP_NAN)
#else #else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment