finite isnt defined on solaris 10, check and define - does the same as Win32
authorCampbell Barton <ideasman42@gmail.com>
Thu, 13 Dec 2007 09:23:06 +0000 (09:23 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 13 Dec 2007 09:23:06 +0000 (09:23 +0000)
intern/elbeem/intern/isosurface.cpp
intern/elbeem/intern/solver_adap.cpp
intern/elbeem/intern/solver_main.cpp

index f6b3e08527af20018852606ca3ed8e7b5efa498b..5f64378e2b6143f4f4012ea2621f23408208db4f 100644 (file)
 #define round(x) (x)
 #endif
 
+// GCC 3.4.3 on solaris 10 dosnt have finite, win32 also just does this
+#ifndef finite
+# define finite(x) (x>=0.0)
+#endif
+
 /******************************************************************************
  * Constructor
  *****************************************************************************/
index b56b1c14f2cc9f85724e61daa80ee7a6d4db1247..d102f689730c90b9a701016502e29b6bd4c3d7c5 100644 (file)
 #include <ieeefp.h>
 #endif
 
+// GCC 3.4.3 on solaris 10 dosnt have finite, win32 also just does this
+#ifndef finite
+# define finite(x) (x>=0.0)
+#endif
 
 /*****************************************************************************/
 //! coarse step functions
index 17163733fe9d2e3620aa5c399ad6817e14ea20e0..fe57f57eff4d4f4b83ee2b0e71efef2d8f1deaa2 100644 (file)
 #include <ieeefp.h>
 #endif
 
+// GCC 3.4.3 on solaris 10 dosnt have finite, win32 also just does this
+#ifndef finite
+# define finite(x) (x>=0.0)
+#endif
 
 /*****************************************************************************/
 /*! perform a single LBM step */