Making the C++ stuff work for the MipsPro 7.3 compiler.
[blender-staging.git] / extern / solid / include / MT_Scalar.h
index 63090d06fc0bb87f2dc16bb0fab9531f9bbedda9..663a1f1839cc1becdc6c8a94a6bc7b24fbeac5db 100755 (executable)
 #ifndef MT_SCALAR_H
 #define MT_SCALAR_H
 
+#if defined (__sun__) || defined ( __sun ) || defined (__sparc) || defined (__sparc__) || defined (__sgi)
+#include <math.h>
+#include <float.h>
+#else
 #include <cmath>
+#include <cstdlib>
+#include <cfloat>
+#endif
 
 #undef max
 
-#include <cstdlib>
-#include <cfloat>
 #include "SOLID_types.h"
 
 #include "GEN_MinMax.h"