X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdint.h;h=3516b96384637634a80c0e28869a59e0a112ac67;hb=e1c526e9bad3f6e69391e94059096145390508d3;hp=50d3a6e30cc299072009779761ee5f86346cf69d;hpb=4c805021b487dff9bfc6341c998ba99636416ae7;p=pdclib diff --git a/includes/stdint.h b/includes/stdint.h index 50d3a6e..3516b96 100644 --- a/includes/stdint.h +++ b/includes/stdint.h @@ -1,7 +1,3 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* 7.18 Integer types This file is part of the Public Domain C Library (PDCLib). @@ -10,11 +6,7 @@ #ifndef _PDCLIB_STDINT_H #define _PDCLIB_STDINT_H _PDCLIB_STDINT_H - -#ifndef _PDCLIB_INT_H -#define _PDCLIB_INT_H _PDCLIB_INT_H #include <_PDCLIB_int.h> -#endif /* 7.18.1.1 Exact-width integer types. */ @@ -159,8 +151,11 @@ typedef _PDCLIB_uintmax_t uintmax_t; #define SIZE_MAX _PDCLIB_SIZE_MAX +#ifndef _PDCLIB_WCHAR_MIN_MAX_DEFINED +#define _PDCLIB_WCHAR_MIN_MAX_DEFINED #define WCHAR_MIN _PDCLIB_WCHAR_MIN #define WCHAR_MAX _PDCLIB_WCHAR_MAX +#endif #define WINT_MIN _PDCLIB_WINT_MIN #define WINT_MAX _PDCLIB_WINT_MAX @@ -189,17 +184,17 @@ typedef _PDCLIB_uintmax_t uintmax_t; /* Expand to an integer constant of specified value and type int_leastN_t */ -#define INT8_C( value ) concat( value, _PDCLIB_INT8_LITERAL ) -#define INT16_C( value ) concat( value, _PDCLIB_INT16_LITERAL ) -#define INT32_C( value ) concat( value, _PDCLIB_INT32_LITERAL ) -#define INT64_C( value ) concat( value, _PDCLIB_INT64_LITERAL ) +#define INT8_C( value ) value +#define INT16_C( value ) value +#define INT32_C( value ) _PDCLIB_concat( value, _PDCLIB_INT32_LITERAL ) +#define INT64_C( value ) _PDCLIB_concat( value, _PDCLIB_INT64_LITERAL ) /* Expand to an integer constant of specified value and type uint_leastN_t */ -#define UINT8_C( value ) concat( value, _PDCLIB_UINT8_LITERAL ) -#define UINT16_C( value ) concat( value, _PDCLIB_UINT16_LITERAL ) -#define UINT32_C( value ) concat( value, _PDCLIB_UINT32_LITERAL ) -#define UINT64_C( value ) concat( value, _PDCLIB_UINT64_LITERAL ) +#define UINT8_C( value ) value +#define UINT16_C( value ) value +#define UINT32_C( value ) _PDCLIB_concat( value, _PDCLIB_UINT32_LITERAL ) +#define UINT64_C( value ) _PDCLIB_concat( value, _PDCLIB_UINT64_LITERAL ) /* 7.18.4.2 Macros for greatest-width integer constants */