Patch #17666 by Vladimi<C2>r Marek
authorTon Roosendaal <ton@blender.org>
Mon, 22 Sep 2008 15:59:04 +0000 (15:59 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 22 Sep 2008 15:59:04 +0000 (15:59 +0000)
Fixes for solaris compiling

intern/elbeem/intern/isosurface.cpp
intern/elbeem/intern/mvmcoords.h
intern/elbeem/intern/solver_class.h

index 9925565b85d67f55fd6785d172db95ad5b33db9b..751a48cebbaffe5d2397a96e393ec2bdf69721c4 100644 (file)
 #include <algorithm>
 #include <stdio.h>
 
+#ifdef sun
+#include "ieeefp.h"
+#endif
+
 // just use default rounding for platforms where its not available
 #ifndef round
 #define round(x) (x)
index 51b0958ed78301a163a433b2fa1f079cc6b0ab65..889f5058a09687bd51e351de60084291db78c3d3 100644 (file)
 #endif
 #endif
 
+#ifdef sun
+#include "ieeefp.h"
+#endif
+
 // weight and triangle index
 class mvmIndexWeight {
        public:
index acfa095e1d87259d0430dbfe8cbe8b2994907da4..f61ef72e8ab45b276803c52932f765cfa3f6c083 100644 (file)
 
 // sirdude fix for solaris
 #if !defined(linux) && defined(sun)
+#include "ieeefp.h"
 #ifndef expf
 #define expf(x) exp((double)(x))
 #endif