Mercurial > ms-int-types
changeset 16:5ce8bdb1369f
Better handling of (U)INTx_C macros - now they generate constants of exact width.
author | ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde |
---|---|
date | Tue, 26 Jun 2007 12:53:23 +0000 |
parents | f831bbea3401 |
children | 5f2b8140b2cd |
files | stdint.h |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/stdint.h +++ b/stdint.h @@ -202,15 +202,15 @@ typedef uint64_t uintmax_t; // 7.18.4.1 Macros for minimum-width integer constants -#define INT8_C(val) val -#define INT16_C(val) val -#define INT32_C(val) val##L +#define INT8_C(val) val##i8 +#define INT16_C(val) val##i16 +#define INT32_C(val) val##i32 #define INT64_C(val) val##i64 -#define UINT8_C(val) val -#define UINT16_C(val) val -#define UINT32_C(val) val##UL -#define UINT64_C(val) val##Ui64 +#define UINT8_C(val) val##ui8 +#define UINT16_C(val) val##ui16 +#define UINT32_C(val) val##ui32 +#define UINT64_C(val) val##ui64 // 7.18.4.2 Macros for greatest-width integer constants #define INTMAX_C INT64_C