Skip to content

Commit

Permalink
Fix Issue 9: Surround (U)INTMAX_C with #ifndef's to prevent compiler …
Browse files Browse the repository at this point in the history
…warnings.
  • Loading branch information
chemeris committed May 24, 2013
1 parent c5dc53c commit f9e7c57
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions stdint.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <boost/cstdint.hpp>.
// 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 ]

Expand Down

0 comments on commit f9e7c57

Please sign in to comment.