X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fstdint.h;h=7ca9d76bcf92f72d2694a9e49d49ec830a7d9b66;hp=4d24fd2e435ccd45aae680112fc407d67bc77db2;hb=f13a47886063675d1e68b581240557fef6a3169c;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/include/stdint.h b/include/stdint.h index 4d24fd2e..7ca9d76b 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -11,16 +11,6 @@ #define __NEED_uint32_t #define __NEED_uint64_t -#define __NEED_int_least8_t -#define __NEED_int_least16_t -#define __NEED_int_least32_t -#define __NEED_int_least64_t - -#define __NEED_uint_least8_t -#define __NEED_uint_least16_t -#define __NEED_uint_least32_t -#define __NEED_uint_least64_t - #define __NEED_int_fast8_t #define __NEED_int_fast16_t #define __NEED_int_fast32_t @@ -33,11 +23,22 @@ #define __NEED_intptr_t #define __NEED_uintptr_t -#define __NEED_intmax_t -#define __NEED_uintmax_t #include +typedef int8_t int_least8_t; +typedef int16_t int_least16_t; +typedef int32_t int_least32_t; +typedef int64_t int_least64_t; + +typedef uint8_t uint_least8_t; +typedef uint16_t uint_least16_t; +typedef uint32_t uint_least32_t; +typedef uint64_t uint_least64_t; + +typedef long long intmax_t; +typedef unsigned long long uintmax_t; + #if !defined __cplusplus || defined __STDC_LIMIT_MACROS #define INT8_MIN (-1-0x7f) @@ -70,19 +71,14 @@ #define UINT_LEAST32_MAX UINT32_MAX #define UINT_LEAST64_MAX UINT64_MAX -#undef WCHAR_MIN -#undef WCHAR_MAX -#undef WINT_MIN -#undef WINT_MAX -#define WCHAR_MIN INT32_MIN -#define WCHAR_MAX INT32_MAX -#define WINT_MIN INT32_MIN -#define WINT_MAX INT32_MAX - #define INTMAX_MIN INT64_MIN #define INTMAX_MAX INT64_MAX #define UINTMAX_MAX UINT64_MAX +#define WINT_MIN INT32_MIN +#define WINT_MAX INT32_MAX + +#include #include #endif @@ -94,8 +90,8 @@ #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) c +#define UINT16_C(c) c #define UINT32_C(c) c ## U #define UINT64_C(c) c ## ULL