[Bf-blender-cvs] [1938a81e420] master: Fix compile error after recent 9c2bbfb6 commit.

Howard Trickey noreply at git.blender.org
Fri Jun 30 13:49:43 CEST 2017


Commit: 1938a81e420d2c97fe1ef04a0768d37fb1ccbd9c
Author: Howard Trickey
Date:   Fri Jun 30 07:47:37 2017 -0400
Branches: master
https://developer.blender.org/rB1938a81e420d2c97fe1ef04a0768d37fb1ccbd9c

Fix compile error after recent 9c2bbfb6 commit.

Older C++ compilers use finite instead of isfinite.

===================================================================

M	intern/elbeem/intern/isosurface.cpp

===================================================================

diff --git a/intern/elbeem/intern/isosurface.cpp b/intern/elbeem/intern/isosurface.cpp
index b29c9e20358..dc2cf684200 100644
--- a/intern/elbeem/intern/isosurface.cpp
+++ b/intern/elbeem/intern/isosurface.cpp
@@ -20,6 +20,10 @@
 #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)




More information about the Bf-blender-cvs mailing list