# HG changeset patch # User ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde # Date 1166003268 0 # Node ID 2a946c144fe779ea97bc07305c264321c13ed43d # Parent 72746e08c7ec65439b7c3f4f8141f3b71f313d38 Added #ifndef for SIZE_MAX (it is defined in limits.h on MSVSC 8). diff --git a/stdint.h b/stdint.h --- a/stdint.h +++ b/stdint.h @@ -160,18 +160,20 @@ typedef uint64_t uintmax_t; #define SIG_ATOMIC_MIN INT_MIN #define SIG_ATOMIC_MAX INT_MAX -#ifdef _WIN64 // [ -# define SIZE_MAX _UI64_MAX -#else // _WIN64 ][ -# define SIZE_MAX _UI32_MAX -#endif // _WIN64 ] +#ifndef SIZE_MAX // [ +# ifdef _WIN64 // [ +# define SIZE_MAX _UI64_MAX +# else // _WIN64 ][ +# define SIZE_MAX _UI32_MAX +# endif // _WIN64 ] +#endif // SIZE_MAX ] // WCHAR_MIN and WCHAR_MAX are also defined in #ifndef WCHAR_MIN // [ -#define WCHAR_MIN 0 +# define WCHAR_MIN 0 #endif // WCHAR_MIN ] #ifndef WCHAR_MAX // [ -#define WCHAR_MAX _UI16_MAX +# define WCHAR_MAX _UI16_MAX #endif // WCHAR_MAX ] #define WINT_MIN 0