From 788994b5fb3be1744724fd1a82373f2a46e8014e Mon Sep 17 00:00:00 2001 From: Gingertoes Date: Fri, 6 Feb 2015 15:22:44 -0700 Subject: Get xglPlatform.h working with old MSVC This was added to revision SVN 29370 for Khronos bug 13274. --- include/xglPlatform.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'include') 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 -#include + +#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 + #endif +#endif // !defined(XGL_NO_STDINT_H) typedef uint64_t XGL_GPU_SIZE; typedef uint32_t bool32_t; -- cgit v1.2.3