瀏覽代碼

Merge pull request #1170 from eightyeight/fix-vs2008

Fix VS2008
Daniel Buckmaster 10 年之前
父節點
當前提交
caf036633a
共有 2 個文件被更改,包括 18 次插入0 次删除
  1. 9 0
      Engine/lib/opcode/OPC_HybridModel.cpp
  2. 9 0
      Engine/lib/opcode/OPC_SweepAndPrune.cpp

+ 9 - 0
Engine/lib/opcode/OPC_HybridModel.cpp

@@ -82,7 +82,16 @@
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 #include "Opcode.h"
+
+#if (defined _MSC_VER) && (_MSC_VER <= 1500)
+#ifdef _WIN64 // [
+typedef unsigned __int64  uintptr_t;
+#else // _WIN64 ][
+typedef _W64 unsigned int uintptr_t;
+#endif // _WIN64 ]
+#else
 #include <stdint.h>
+#endif
 
 using namespace Opcode;
 

+ 9 - 0
Engine/lib/opcode/OPC_SweepAndPrune.cpp

@@ -17,7 +17,16 @@
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 #include "Opcode.h"
+
+#if (defined _MSC_VER) && (_MSC_VER <= 1500)
+#ifdef _WIN64 // [
+typedef unsigned __int64  uintptr_t;
+#else // _WIN64 ][
+typedef _W64 unsigned int uintptr_t;
+#endif // _WIN64 ]
+#else
 #include <stdint.h>
+#endif
 
 using namespace Opcode;