]> granicus.if.org Git - xz/commitdiff
Workaround unusual SIZE_MAX on SCO OpenServer.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 9 Aug 2011 18:16:44 +0000 (21:16 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 5 Sep 2011 13:05:44 +0000 (16:05 +0300)
src/common/sysdefs.h

index 69370ba421069b8d2fc206b00820b54539f21234..5ea6bdae4aeda45ac4e3a18521b5231b71c9a4d9 100644 (file)
 #      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