Fix compilation problem in Windows and update project files
[blender.git] / source / blender / blenlib / BLI_winstuff.h
index b46ebebacd576e3ebbd3b36b1163720509177d66..03828bf6bf3f7c3fdb054fd5162cbc956d5bc8f8 100644 (file)
@@ -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;