]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
fix compile problem on win32
[xonotic/darkplaces.git] / 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>