Better fix for isfinite problem - works in older gcc's too.
authorHoward Trickey <howard.trickey@gmail.com>
Fri, 30 Jun 2017 13:04:01 +0000 (09:04 -0400)
committerHoward Trickey <howard.trickey@gmail.com>
Fri, 30 Jun 2017 13:04:01 +0000 (09:04 -0400)
Previous fix relying on __cplusplus value didn't fix for older
gcc's on linux, but this fix does.

intern/elbeem/intern/isosurface.cpp

index dc2cf684200df0843c098859298e0d23eb9a5cce..de7bfe8e687c65cd523a6901339422105f33ba1f 100644 (file)
 #include "particletracer.h"
 #include <algorithm>
 #include <stdio.h>
+#include <cmath>
 
 #ifdef sun
 #include "ieeefp.h"
 #endif
 
-#if  __cplusplus < 201103L
-#define isfinite finite
-#endif
-
 // just use default rounding for platforms where its not available
 #ifndef round
 #define round(x) (x)
 #endif
 
+using std::isfinite;
+
 /******************************************************************************
  * Constructor
  *****************************************************************************/