Fix compilation problem in Windows and update project files
[blender.git] / source / blender / blenlib / intern / BLI_bfile.c
index 06e75a9a3cab595866f9f06929a91e643cbbf9ce..4789df593efa0bfadd7b48bb5ddc4cbe4b428fa6 100644 (file)
 
 #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>