Bugfix for non-compiling on msvc and mingw (reported by Matt)
authorDaniel Genrich <daniel.genrich@gmx.net>
Tue, 12 Aug 2008 09:36:51 +0000 (09:36 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Tue, 12 Aug 2008 09:36:51 +0000 (09:36 +0000)
intern/elbeem/intern/mvmcoords.h
source/blender/blenloader/intern/readfile.c

index 2b63d31da54a727a0b8a5827942a7f621e3d0e29..6c24482501f6b2ee62f71c6ec3d06d42644701f9 100644 (file)
 #include <vector>
 #define mvmFloat double
 
+#ifdef WIN32
+#ifndef FREE_WINDOWS
+#define isnan(n) _isnan(n)
+#define finite _finite
+#endif
+#endif
+
 // weight and triangle index
 class mvmIndexWeight {
        public:
index 55106420cc66a3b49d9d8697dcb5069ca1699b73..35d605fefe7acc6a743d8ea5d8ef7157e03e0cf7 100644 (file)
@@ -37,6 +37,9 @@
 #ifdef WIN32
 #include "winsock2.h"
 #include "BLI_winstuff.h"
+#ifndef INT_MAX
+#include "limits.h"
+#endif
 #endif
 
 #include <stdio.h> // for printf fopen fwrite fclose sprintf FILE