From: Lasse Collin Date: Tue, 9 Aug 2011 18:16:44 +0000 (+0300) Subject: Workaround unusual SIZE_MAX on SCO OpenServer. X-Git-Tag: v5.0.4~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70f03b51ffcb783646b20de8d97b6986c4280eec;p=xz Workaround unusual SIZE_MAX on SCO OpenServer. --- diff --git a/src/common/sysdefs.h b/src/common/sysdefs.h index 69370ba4..5ea6bdae 100644 --- a/src/common/sysdefs.h +++ b/src/common/sysdefs.h @@ -103,9 +103,12 @@ # define UINT64_MAX UINT64_C(18446744073709551615) #endif -// Interix has broken header files, which typedef size_t to unsigned long, -// but a few lines later define SIZE_MAX to INT32_MAX. -#ifdef __INTERIX +// Incorrect(?) SIZE_MAX: +// - Interix headers typedef size_t to unsigned long, +// 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 #endif