瀏覽代碼

Merge pull request #1677 from Areloch/i386FlagFlip

Flips the i386 flag to __i386__
Areloch 9 年之前
父節點
當前提交
ea0ba04a9c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Engine/source/platform/types.gcc.h
  2. 1 1
      Engine/source/platformX86UNIX/x86UNIXMath.cpp

+ 1 - 1
Engine/source/platform/types.gcc.h

@@ -115,7 +115,7 @@ typedef unsigned long  U64;
 
 //--------------------------------------
 // Identify the CPU
-#if defined(i386)
+#if defined(i386) || defined(__i386) || defined(__i386__)
 #  define TORQUE_CPU_STRING "Intel x86"
 #  define TORQUE_CPU_X86
 #  define TORQUE_LITTLE_ENDIAN

+ 1 - 1
Engine/source/platformX86UNIX/x86UNIXMath.cpp

@@ -131,7 +131,7 @@ F32 Platform::getRandom()
 }
 
 
-#if defined(i386) || defined(__x86_64__)
+#if defined(TORQUE_CPU_X86) || defined(__x86_64__)
 
 U32 Platform::getMathControlState()
 {