Fix Windows compilation problem and update MSVC project files

This commit is contained in:
Benoit Bolsee 2008-08-22 15:00:30 +00:00
parent 39a8125e4c
commit 7630539fe8
3 changed files with 20 additions and 1 deletions

@ -494,6 +494,9 @@
<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>
@ -708,6 +711,9 @@
<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>

@ -61,6 +61,10 @@
// 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__ */

@ -30,8 +30,13 @@
#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)