A stdint implementation for old version of Visual Studio, automatically included if needed by <osvr/util/StdInt.h>
More...
#include <wchar.h>
#include <stddef.h>
Go to the source code of this file.
|
#define | __need_wint_t |
|
#define | __need_wchar_t |
|
#define | __STDINT_LONGLONG long long |
|
#define | __STDINT_LONGLONG_SUFFIX LL |
|
#define | __MSSTDINT_PASTE2(x, y) x##y |
|
#define | __MSSTDINT_PASTE(x, y) __MSSTDINT_PASTE2(x, y) |
|
#define | _INTPTR_T_DEFINED |
|
#define | _UINTPTR_T_DEFINED |
|
#define | INT8_MIN (-128) |
|
#define | INT16_MIN (-32768) |
|
#define | INT32_MIN (-2147483647 - 1) |
|
#define | INT64_MIN (__MSSTDINT_PASTE(-9223372036854775807, __STDINT_LONGLONG_SUFFIX) - 1) |
|
#define | INT8_MAX 127 |
|
#define | INT16_MAX 32767 |
|
#define | INT32_MAX 2147483647 |
|
#define | INT64_MAX (__MSSTDINT_PASTE(9223372036854775807, __STDINT_LONGLONG_SUFFIX)) |
|
#define | UINT8_MAX 0xff /* 255U */ |
|
#define | UINT16_MAX 0xffff /* 65535U */ |
|
#define | UINT32_MAX 0xffffffff /* 4294967295U */ |
|
#define | UINT64_MAX |
|
#define | INT_LEAST8_MIN INT8_MIN |
|
#define | INT_LEAST16_MIN INT16_MIN |
|
#define | INT_LEAST32_MIN INT32_MIN |
|
#define | INT_LEAST64_MIN INT64_MIN |
|
#define | INT_LEAST8_MAX INT8_MAX |
|
#define | INT_LEAST16_MAX INT16_MAX |
|
#define | INT_LEAST32_MAX INT32_MAX |
|
#define | INT_LEAST64_MAX INT64_MAX |
|
#define | UINT_LEAST8_MAX UINT8_MAX |
|
#define | UINT_LEAST16_MAX UINT16_MAX |
|
#define | UINT_LEAST32_MAX UINT32_MAX |
|
#define | UINT_LEAST64_MAX UINT64_MAX |
|
#define | INT_FAST8_MIN INT8_MIN |
|
#define | INT_FAST16_MIN INT16_MIN |
|
#define | INT_FAST32_MIN INT32_MIN |
|
#define | INT_FAST64_MIN INT64_MIN |
|
#define | INT_FAST8_MAX INT8_MAX |
|
#define | INT_FAST16_MAX INT16_MAX |
|
#define | INT_FAST32_MAX INT32_MAX |
|
#define | INT_FAST64_MAX INT64_MAX |
|
#define | UINT_FAST8_MAX UINT8_MAX |
|
#define | UINT_FAST16_MAX UINT16_MAX |
|
#define | UINT_FAST32_MAX UINT32_MAX |
|
#define | UINT_FAST64_MAX UINT64_MAX |
|
#define | INTPTR_MIN INT32_MIN |
|
#define | INTPTR_MAX INT32_MAX |
|
#define | UINTPTR_MAX UINT32_MAX |
|
#define | INTMAX_MIN INT64_MIN |
|
#define | INTMAX_MAX INT64_MAX |
|
#define | UINTMAX_MAX UINT64_MAX |
|
#define | PTRDIFF_MIN INTPTR_MIN |
|
#define | PTRDIFF_MAX INTPTR_MAX |
|
#define | SIG_ATOMIC_MIN INTPTR_MIN |
|
#define | SIG_ATOMIC_MAX INTPTR_MAX |
|
#define | SIZE_MAX UINTPTR_MAX |
|
#define | WCHAR_MIN 0 |
|
#define | WCHAR_MAX ((wchar_t)-1) /* UINT16_MAX */ |
|
#define | WINT_MIN 0 |
|
#define | WINT_MAX ((wint_t)-1) /* UINT16_MAX */ |
|
#define | INT8_C(val) ((int8_t) + (val)) |
|
#define | UINT8_C(val) ((uint8_t) + (val##U)) |
|
#define | INT16_C(val) ((int16_t) + (val)) |
|
#define | UINT16_C(val) ((uint16_t) + (val##U)) |
|
#define | INT32_C(val) val##L |
|
#define | UINT32_C(val) val##UL |
|
#define | INT64_C(val) (__MSSTDINT_PASTE(val, __STDINT_LONGLONG_SUFFIX)) |
|
#define | UINT64_C(val) (__MSSTDINT_PASTE(__MSSTDINT_PASTE(val, U), __STDINT_LONGLONG_SUFFIX)) |
|
#define | INTMAX_C(val) INT64_C(val) |
|
#define | UINTMAX_C(val) UINT64_C(val) |
|
|
typedef signed char | int8_t |
|
typedef unsigned char | uint8_t |
|
typedef short | int16_t |
|
typedef unsigned short | uint16_t |
|
typedef int | int32_t |
|
typedef unsigned | uint32_t |
|
typedef __STDINT_LONGLONG | int64_t |
|
typedef unsigned __STDINT_LONGLONG | uint64_t |
|
typedef signed char | int_least8_t |
|
typedef unsigned char | uint_least8_t |
|
typedef short | int_least16_t |
|
typedef unsigned short | uint_least16_t |
|
typedef int | int_least32_t |
|
typedef unsigned | uint_least32_t |
|
typedef __STDINT_LONGLONG | int_least64_t |
|
typedef unsigned __STDINT_LONGLONG | uint_least64_t |
|
typedef char | int_fast8_t |
|
typedef unsigned char | uint_fast8_t |
|
typedef short | int_fast16_t |
|
typedef unsigned short | uint_fast16_t |
|
typedef int | int_fast32_t |
|
typedef unsigned int | uint_fast32_t |
|
typedef __STDINT_LONGLONG | int_fast64_t |
|
typedef unsigned __STDINT_LONGLONG | uint_fast64_t |
|
typedef int | intptr_t |
|
typedef unsigned int | uintptr_t |
|
typedef __STDINT_LONGLONG | intmax_t |
|
typedef unsigned __STDINT_LONGLONG | uintmax_t |
|
A stdint implementation for old version of Visual Studio, automatically included if needed by <osvr/util/StdInt.h>
Origin: http://snipplr.com/view/18199/stdinth/ from user mwb1100
"A public domain stdint.h. Original code is from a public domain version in the MinGW distribution. This one has been modified to fix a couple bugs (to make some macros 64-bit aware) and to make it compatible with VC6."
While Visual Studio pre-2010 can't compile the core, they might build plugins, so thus this header is provided.
§ UINT64_MAX
Value:(__MSSTDINT_PASTE(0xffffffffffffffffU, \
__STDINT_LONGLONG_SUFFIX))