Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-09-24 13:29:59 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2009-09-24 13:29:59 +0400
commit3e59a88450b9a26b09e671e38170b0f6f17a9182 (patch)
treef4f22f71d7b412dec24a63c63eb46640efa7d6e7 /source
parentb94ed5d7e469c6c3ea421919138da8c04a3f01e3 (diff)
Fix compilation problem in Windows and update project files
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/BLI_winstuff.h6
-rw-r--r--source/blender/blenlib/intern/BLI_bfile.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h
index b46ebebacd5..03828bf6bf3 100644
--- a/source/blender/blenlib/BLI_winstuff.h
+++ b/source/blender/blenlib/BLI_winstuff.h
@@ -91,6 +91,12 @@ extern "C" {
typedef unsigned int mode_t;
#endif
+#if defined(_WIN64)
+typedef __int64 ssize_t;
+#else
+typedef _W64 int ssize_t;
+#endif
+
struct dirent {
int d_ino;
int d_off;
diff --git a/source/blender/blenlib/intern/BLI_bfile.c b/source/blender/blenlib/intern/BLI_bfile.c
index 06e75a9a3ca..4789df593ef 100644
--- a/source/blender/blenlib/intern/BLI_bfile.c
+++ b/source/blender/blenlib/intern/BLI_bfile.c
@@ -26,7 +26,12 @@
#include <string.h>
-#include <unistd.h>
+#ifndef WIN32
+ #include <unistd.h>
+#else
+ #include <io.h>
+#include "BLI_winstuff.h"
+#endif
#include <sys/types.h>
#include <sys/stat.h>