comparison stdint.h @ 27:536eb2988c28

Fix Issue 9: Surround (U)INTMAX_C with #ifndef's to prevent compiler warnings.
author alexander.chemeris@gmail.com@d525d15b-5824-0410-80a3-6185d19c2cde
date Fri, 24 May 2013 22:36:43 +0000
parents 480de4e30dcd
children
comparison
equal deleted inserted replaced
26:480de4e30dcd 27:536eb2988c28
241 #define UINT16_C(val) val##ui16 241 #define UINT16_C(val) val##ui16
242 #define UINT32_C(val) val##ui32 242 #define UINT32_C(val) val##ui32
243 #define UINT64_C(val) val##ui64 243 #define UINT64_C(val) val##ui64
244 244
245 // 7.18.4.2 Macros for greatest-width integer constants 245 // 7.18.4.2 Macros for greatest-width integer constants
246 #define INTMAX_C INT64_C 246 // These #ifndef's are needed to prevent collisions with <boost/cstdint.hpp>.
247 #define UINTMAX_C UINT64_C 247 // Check out Issue 9 for the details.
248 #ifndef INTMAX_C // [
249 # define INTMAX_C INT64_C
250 #endif // INTMAX_C ]
251 #ifndef UINTMAX_C // [
252 # define UINTMAX_C UINT64_C
253 #endif // UINTMAX_C ]
248 254
249 #endif // __STDC_CONSTANT_MACROS ] 255 #endif // __STDC_CONSTANT_MACROS ]
250 256
251 #endif // _MSC_VER >= 1600 ] 257 #endif // _MSC_VER >= 1600 ]
252 258