Browse Source

Merge pull request #1176 from GarageGames/fix-vs2008-again

Fix VS2008 again
Daniel Buckmaster 10 năm trước cách đây
mục cha
commit
f26210f0f5
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      Engine/source/platform/types.h

+ 8 - 0
Engine/source/platform/types.h

@@ -23,7 +23,15 @@
 #ifndef _TORQUE_TYPES_H_
 #define _TORQUE_TYPES_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
 
 //////////////////////////////////////////////////////////////////////////////////////////////////////////
 //-----------------------------------------Basic Types--------------------------------------------------//