Browse Source

correct 64-bit build support setup

Joseph Lee 22 years ago
parent
commit
ff66e80fc0

+ 1 - 0
direct/src/autorestart/autorestart.c

@@ -17,6 +17,7 @@
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
 
 #include "dtool_config.h"
 #include "dtool_config.h"
+#include "dtoolbase.h"
 
 
 #ifndef HAVE_GETOPT
 #ifndef HAVE_GETOPT
 #include "gnu_getopt.h"
 #include "gnu_getopt.h"

+ 0 - 4
dtool/Config.Linux.pp

@@ -127,7 +127,3 @@
 // What is the syntax of the STL allocator declaration?  See
 // What is the syntax of the STL allocator declaration?  See
 // LocalSetup.pp for allowable values.
 // LocalSetup.pp for allowable values.
 #define STL_ALLOCATOR GNU
 #define STL_ALLOCATOR GNU
-
-// large file >2GB support
-#define _LARGEFILE_SOURCE 1
-#define _FILE_OFFSET_BITS 64

+ 7 - 0
dtool/src/dtoolbase/dtoolbase.h

@@ -78,6 +78,13 @@
 
 
 #include "dtoolsymbols.h"
 #include "dtoolsymbols.h"
 
 
+#ifdef __GNUC__
+// Large file >2GB support
+// this needs be be before systypes.h and other C headers
+#define _FILE_OFFSET_BITS 64
+#define _LARGEFILE_SOURCE 1
+#endif
+
 #ifdef HAVE_MALLOC_H
 #ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #include <malloc.h>
 #endif
 #endif