make [U]INTn_C() macros have the right type...

...and still be valid in #if directives.
This commit is contained in:
Rich Felker 2011-10-04 11:50:35 -04:00
parent 5e977e8b48
commit 73f5ff4e86
1 changed files with 4 additions and 4 deletions

View File

@ -85,13 +85,13 @@ typedef unsigned long long uintmax_t;
#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
#define INT8_C(c) c
#define INT16_C(c) c
#define INT8_C(c) ((int8_t) + (c))
#define INT16_C(c) ((int16_t) + (c))
#define INT32_C(c) c
#define INT64_C(c) c ## LL
#define UINT8_C(c) c ## U
#define UINT16_C(c) c ## U
#define UINT8_C(c) ((uint8_t) + (c))
#define UINT16_C(c) ((uint16_t) + (c))
#define UINT32_C(c) c ## U
#define UINT64_C(c) c ## ULL