# HG changeset patch # User alexander.chemeris@gmail.com@d525d15b-5824-0410-80a3-6185d19c2cde # Date 1369435003 0 # Node ID 536eb2988c2854763a481814e821282cc5f77d6c # Parent 480de4e30dcd4b43172cc4e7994f40f6a844c3d4 Fix Issue 9: Surround (U)INTMAX_C with #ifndef's to prevent compiler warnings. diff --git a/stdint.h b/stdint.h --- a/stdint.h +++ b/stdint.h @@ -243,8 +243,14 @@ typedef uint64_t uintmax_t; #define UINT64_C(val) val##ui64 // 7.18.4.2 Macros for greatest-width integer constants -#define INTMAX_C INT64_C -#define UINTMAX_C UINT64_C +// These #ifndef's are needed to prevent collisions with . +// Check out Issue 9 for the details. +#ifndef INTMAX_C // [ +# define INTMAX_C INT64_C +#endif // INTMAX_C ] +#ifndef UINTMAX_C // [ +# define UINTMAX_C UINT64_C +#endif // UINTMAX_C ] #endif // __STDC_CONSTANT_MACROS ]