]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix compile problem on win32
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Mar 2011 06:46:23 +0000 (06:46 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Mar 2011 06:46:23 +0000 (06:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10893 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 1a2e3e25e902907fa11014f1dd210d531ef67837..043bf3171a144624f14780401b90719666b43170 100644 (file)
--- a/fs.c
+++ b/fs.c
                Boston, MA  02111-1307, USA
 */
 
-// we MUST include "quakedef.h" before anything that may include IO functions
-// to get _FILE_OFFSET_BITS
+#ifdef WIN32
+# include <direct.h>
+# include <io.h>
+# include <shlobj.h>
+#endif
+
+// on *x, we MUST include "quakedef.h" before anything that may include IO
+// functions to get _FILE_OFFSET_BITS
 #include "quakedef.h"
 
 #ifdef __APPLE__
 #include <limits.h>
 #include <fcntl.h>
 
-#ifdef WIN32
-# include <direct.h>
-# include <io.h>
-# include <shlobj.h>
-#else
+#ifndef WIN32
 # include <pwd.h>
 # include <sys/stat.h>
 # include <unistd.h>