port: advance VC6 compatibility frontier

This commit is contained in:
RayPals
2026-10-02 17:38:23 +00:00
parent df99608491
commit 01a7105be9
16 changed files with 20324 additions and 5 deletions
File diff suppressed because it is too large Load Diff
+51
View File
@@ -22,6 +22,57 @@ typedef unsigned long uint_least32_t;
typedef __int64 int_least64_t;
typedef unsigned __int64 uint_least64_t;
/* C99 integer limit macros missing from the VC6 standard headers.
* This compatibility directory is used only for the 32-bit Win32 target. */
#ifndef INT8_MIN
# define INT8_MIN (-127 - 1)
#endif
#ifndef INT8_MAX
# define INT8_MAX 127
#endif
#ifndef UINT8_MAX
# define UINT8_MAX 0xFFU
#endif
#ifndef INT16_MIN
# define INT16_MIN (-32767 - 1)
#endif
#ifndef INT16_MAX
# define INT16_MAX 32767
#endif
#ifndef UINT16_MAX
# define UINT16_MAX 0xFFFFU
#endif
#ifndef INT32_MIN
# define INT32_MIN (-2147483647L - 1)
#endif
#ifndef INT32_MAX
# define INT32_MAX 2147483647L
#endif
#ifndef UINT32_MAX
# define UINT32_MAX 0xFFFFFFFFUL
#endif
#ifndef INT64_MAX
# define INT64_MAX 0x7FFFFFFFFFFFFFFFi64
#endif
#ifndef INT64_MIN
# define INT64_MIN (-INT64_MAX - 1)
#endif
#ifndef UINT64_MAX
# define UINT64_MAX 0xFFFFFFFFFFFFFFFFui64
#endif
#ifndef INTPTR_MIN
# define INTPTR_MIN (-2147483647L - 1)
#endif
#ifndef INTPTR_MAX
# define INTPTR_MAX 2147483647L
#endif
#ifndef UINTPTR_MAX
# define UINTPTR_MAX 0xFFFFFFFFUL
#endif
#ifndef SIZE_MAX
# define SIZE_MAX 0xFFFFFFFFUL
#endif
#define PRId32 "ld"
#define PRIu32 "lu"
#define PRIx32 "lx"