diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-31 02:52:08 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-31 02:52:51 +0200 |
commit | e667c2090d83a267d1bba7c28650dd8fc75ae826 (patch) | |
tree | bf9814f3be54c9c13d9e6c967b907ec1a6c404c2 /include/stdint.h | |
parent | wchar_t and wint_t not safe for marshalling (diff) | |
download | slibc-e667c2090d83a267d1bba7c28650dd8fc75ae826.tar.gz slibc-e667c2090d83a267d1bba7c28650dd8fc75ae826.tar.bz2 slibc-e667c2090d83a267d1bba7c28650dd8fc75ae826.tar.xz |
wint_t and wchar_t are not portable, additionally they are not guaranteed to be defined as expected and thus should not be used
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | include/stdint.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/stdint.h b/include/stdint.h index 3486de3..a8cb426 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -376,26 +376,28 @@ #define SSIZE_MIN INTPTR_MIN +#ifndef _PORTABLE_SOURCE /** * Maximum value of `wchar_t`. */ -#define WCHAR_MAX __WCHAR_MAX +# define WCHAR_MAX __WCHAR_MAX /** * Minimum value of `wchar_t`. */ -#define WCHAR_MIN (__MAX_TO_MIN(WCHAR_MAX)) +# define WCHAR_MIN (__MAX_TO_MIN(WCHAR_MAX)) /** * Maximum value of `wint_t`. */ -#define WINT_MAX WCHAR_MAX +# define WINT_MAX WCHAR_MAX /** * Minimum value of `wint_t`. */ -#define WINT_MIN WCHAR_MIN +# define WINT_MIN WCHAR_MIN +#endif /** |