From f427d8311201001f62bbd10c225f335e1d9cf82f Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 4 Mar 2011 23:36:37 +0000 Subject: [PATCH] move the "quakedef.h" include, which gives us _FILE_OFFSET_BITS=64, above all system header includes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10892 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs.c b/fs.c index 8d505e8b..1a2e3e25 100644 --- a/fs.c +++ b/fs.c @@ -22,6 +22,10 @@ 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 @@ -43,8 +47,6 @@ # include #endif -#include "quakedef.h" - #include "fs.h" #include "wad.h" -- 2.39.2