diff options
| author | Gingertoes <pdaniell@nvidia.com> | 2015-02-06 15:22:44 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-06 17:20:50 -0700 |
| commit | 788994b5fb3be1744724fd1a82373f2a46e8014e (patch) | |
| tree | 3fa6c6f002be4d7762b200b9aa0966d82bbb3b4c /include | |
| parent | da1ad51f1fe863a5f2e9efee6ab23b5606580031 (diff) | |
| download | usermoji-788994b5fb3be1744724fd1a82373f2a46e8014e.tar.xz | |
Get xglPlatform.h working with old MSVC
This was added to revision SVN 29370 for Khronos bug 13274.
Diffstat (limited to 'include')
| -rw-r--r-- | include/xglPlatform.h | 16 |
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; |
