]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 2 Nov 2011 10:37:11 +0000 (11:37 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11517 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=db114d82137efd0d4f4f851975e9fa13dcb710d7

fs.c

diff --git a/fs.c b/fs.c
index 8e2fe67ffc904656ef2f01ea2ab58f9a9f612d57..96bc76709416311ac6395a3a00858739e577f383 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