Work around a bug in Interix header files.

Thanks to Markus Duft for the patch.
This commit is contained in:
Lasse Collin 2009-09-27 11:48:54 +03:00
parent b3d105e697
commit db9119b918
1 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,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,
// but a few lines later define SIZE_MAX to INT32_MAX.
#ifdef __INTERIX
# undef SIZE_MAX
#endif
// The code currently assumes that size_t is either 32-bit or 64-bit. // The code currently assumes that size_t is either 32-bit or 64-bit.
#ifndef SIZE_MAX #ifndef SIZE_MAX
# if SIZEOF_SIZE_T == 4 # if SIZEOF_SIZE_T == 4