| 1 | #pragma once |
| 2 | |
| 3 | #ifndef _MSC_VER |
| 4 | #error "Use this header only with Microsoft Visual C++ compilers!" |
| 5 | #endif |
| 6 | |
| 7 | #include <crtdefs.h> // for intptr_t |
| 8 | #if !defined(UINT64_MAX) |
| 9 | #include <limits.h> |
| 10 | #define UINT64_MAX _UI64_MAX |
| 11 | #endif |
| 12 | |
| 13 | /* a minimal set of C99 types for use with MSVC (VC9) */ |
| 14 | |
| 15 | typedef signed char int8_t; |
| 16 | typedef short int int16_t; |
| 17 | typedef int int32_t; |
| 18 | typedef __int64 int64_t; |
| 19 | |
| 20 | typedef unsigned char uint8_t; |
| 21 | typedef unsigned short int uint16_t; |
| 22 | typedef unsigned int uint32_t; |
| 23 | typedef unsigned __int64 uint64_t; |
| 24 | |