1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Workaround unusual SIZE_MAX on SCO OpenServer.

This commit is contained in:
Lasse Collin 2011-08-09 21:16:44 +03:00
parent e9ed88126e
commit 5b1e1f1074

View file

@ -103,9 +103,12 @@
# define UINT64_MAX UINT64_C(18446744073709551615) # define UINT64_MAX UINT64_C(18446744073709551615)
#endif #endif
// Interix has broken header files, which typedef size_t to unsigned long, // Incorrect(?) SIZE_MAX:
// but a few lines later define SIZE_MAX to INT32_MAX. // - Interix headers typedef size_t to unsigned long,
#ifdef __INTERIX // but a few lines later define SIZE_MAX to INT32_MAX.
// - SCO OpenServer (x86) headers typedef size_t to unsigned int
// but define SIZE_MAX to INT32_MAX.
#if defined(__INTERIX) || defined(_SCO_DS)
# undef SIZE_MAX # undef SIZE_MAX
#endif #endif