diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2017-06-30 16:04:01 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2017-06-30 16:04:01 +0300 |
commit | 76eefa5c0d034d00ddec42efa7351e1c85df3906 (patch) | |
tree | c18d430d3d1f9efd399c2fb9f60381cf37644e0e | |
parent | 1938a81e420d2c97fe1ef04a0768d37fb1ccbd9c (diff) |
Better fix for isfinite problem - works in older gcc's too.
Previous fix relying on __cplusplus value didn't fix for older
gcc's on linux, but this fix does.
-rw-r--r-- | intern/elbeem/intern/isosurface.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/intern/elbeem/intern/isosurface.cpp b/intern/elbeem/intern/isosurface.cpp index dc2cf684200..de7bfe8e687 100644 --- a/intern/elbeem/intern/isosurface.cpp +++ b/intern/elbeem/intern/isosurface.cpp @@ -15,20 +15,19 @@ #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 *****************************************************************************/ |