浏览代码

VS2008 doesn't have stdint.h

Daniel Buckmaster 10 年之前
父节点
当前提交
d10afa2ba2
共有 1 个文件被更改,包括 8 次插入0 次删除
  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--------------------------------------------------//