port: advance VC6 compatibility frontier
This commit is contained in:
@@ -14,6 +14,19 @@
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
|
||||
#if UINT16_MAX != 0xFFFFU
|
||||
#error "VC6 uint16_t maximum is incorrect"
|
||||
#endif
|
||||
#if SIZE_MAX != 0xFFFFFFFFUL
|
||||
#error "VC6 size_t maximum must match the 32-bit Win32 target"
|
||||
#endif
|
||||
#if INT64_MAX != 0x7FFFFFFFFFFFFFFFi64
|
||||
#error "VC6 int64_t maximum is incorrect"
|
||||
#endif
|
||||
#if UINT64_MAX != 0xFFFFFFFFFFFFFFFFui64
|
||||
#error "VC6 uint64_t maximum is incorrect"
|
||||
#endif
|
||||
|
||||
typedef char vc6_stdint_check_uint8_is_1_byte[(sizeof(uint8_t) == 1) ? 1 : -1];
|
||||
typedef char vc6_stdint_check_uint32_is_4_bytes[(sizeof(uint32_t) == 4) ? 1 : -1];
|
||||
typedef char vc6_stdint_check_uint64_is_8_bytes[(sizeof(uint64_t) == 8) ? 1 : -1];
|
||||
|
||||
Reference in New Issue
Block a user