Browse Source

adding 64bit flags

Dickinson Lo 18 years ago
parent
commit
6a51ce0b58
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dtool/Config.Linux.pp

+ 4 - 1
dtool/Config.Linux.pp

@@ -22,7 +22,10 @@
 #define IS_LINUX 1
 
 // What additional flags should we pass to interrogate?
-#define SYSTEM_IGATE_FLAGS -D__i386__ -D__const=const -Dvolatile -Dmutable
+#if $[eq $[shell uname -i], x86_64] // if Linux is 64bit
+  #define SYSTEM_IGATE_FLAGS -D_LP64
+#else
+  #define SYSTEM_IGATE_FLAGS -D__i386__ -D__const=const -Dvolatile -Dmutable
 
 // Is the platform big-endian (like an SGI workstation) or
 // little-endian (like a PC)?  Define this to the empty string to