]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
move the "quakedef.h" include, which gives us _FILE_OFFSET_BITS=64, above all system...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Mar 2011 23:36:37 +0000 (23:36 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Mar 2011 23:36:37 +0000 (23:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10892 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 8d505e8b3604ce2664d668054b553926a05150c6..1a2e3e25e902907fa11014f1dd210d531ef67837 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
+#include "quakedef.h"
+
 #ifdef __APPLE__
 // include SDL for IPHONEOS code
 # include <TargetConditionals.h>
@@ -43,8 +47,6 @@
 # include <unistd.h>
 #endif
 
-#include "quakedef.h"
-
 #include "fs.h"
 #include "wad.h"