aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/xglPlatform.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/xglPlatform.h b/include/xglPlatform.h
index f0c7a3f6..79f37c93 100644
--- a/include/xglPlatform.h
+++ b/include/xglPlatform.h
@@ -51,7 +51,21 @@ extern "C"
#endif
#include <stddef.h>
-#include <stdint.h>
+
+#if !defined(XGL_NO_STDINT_H)
+ #if defined(_MSC_VER) && (_MSC_VER < 1600)
+ typedef signed __int8 int8_t;
+ typedef unsigned __int8 uint8_t;
+ typedef signed __int16 int16_t;
+ typedef unsigned __int16 uint16_t;
+ typedef signed __int32 int32_t;
+ typedef unsigned __int32 uint32_t;
+ typedef signed __int64 int64_t;
+ typedef unsigned __int64 uint64_t;
+ #else
+ #include <stdint.h>
+ #endif
+#endif // !defined(XGL_NO_STDINT_H)
typedef uint64_t XGL_GPU_SIZE;
typedef uint32_t bool32_t;