win32: add two includes to make sure the constants for file mode and sharing are...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 2 Nov 2011 08:07:23 +0000 (08:07 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 2 Nov 2011 08:07:23 +0000 (08:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11517 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 2ce6a13..9376804 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -37,6 +37,8 @@
 # include <direct.h>
 # include <io.h>
 # include <shlobj.h>
+# include <sys/stat.h>
+# include <share.h>
 #else
 # include <pwd.h>
 # include <sys/stat.h>
 # define lseek _lseeki64
 #endif
 
-#if _MSC_VER >= 1400
 // suppress deprecated warnings
-# include <sys/stat.h>
-# include <share.h>
+#if _MSC_VER >= 1400
 # define read _read
 # define write _write
 # define close _close