Fix Windows compilation problem and update MSVC project files
authorBenoit Bolsee <benoit.bolsee@online.be>
Fri, 22 Aug 2008 15:00:30 +0000 (15:00 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Fri, 22 Aug 2008 15:00:30 +0000 (15:00 +0000)
projectfiles_vc7/blender/blenkernel/BKE_blenkernel.vcproj
source/blender/blenlib/BLI_winstuff.h
source/gameengine/Ketsji/KX_PythonInit.cpp

index 0ea3503a289f2cd6a2ac849dd40b91dea88faf81..42dcc843091592263c3db2e00ec4e6974d388159 100644 (file)
                        <File
                                RelativePath="..\..\..\source\blender\blenkernel\intern\script.c">
                        </File>
+                       <File
+                               RelativePath="..\..\..\source\blender\blenkernel\intern\shrinkwrap.c">
+                       </File>
                        <File
                                RelativePath="..\..\..\source\blender\blenkernel\intern\softbody.c">
                        </File>
                        <File
                                RelativePath="..\..\..\source\blender\blenkernel\BKE_script.h">
                        </File>
+                       <File
+                               RelativePath="..\..\..\source\blender\blenkernel\BKE_shrinkwrap.h">
+                       </File>
                        <File
                                RelativePath="..\..\..\source\blender\blenkernel\BKE_softbody.h">
                        </File>
index 11150075bac763f33cf821ae51e1c96f79645212..3bb63506c9551313702292116c5c3c3cbb133cca 100644 (file)
 
        // These definitions are also in arithb for simplicity
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef M_PI
 #define M_PI           3.14159265358979323846
 #endif
@@ -116,5 +120,9 @@ int closedir (DIR *dp);
 void get_default_root(char *root);
 int check_file_chars(char *filename);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WINSTUFF_H__ */
 
index 6179d614e8cc8092e9a492c073d7026052a704ae..5d2126ca37a6a03c94b3a8d6c449f1edfb0e2a67 100644 (file)
 
 #include "GL/glew.h"
 
+// directory header for py function getBlendFileList
 #include <stdlib.h>
-#include <dirent.h> // directory header for py function getBlendFileList
+#ifndef WIN32
+  #include <dirent.h>
+#else
+  #include "BLI_winstuff.h"
+#endif
 
 #ifdef WIN32
 #pragma warning (disable : 4786)