diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-16 22:25:28 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-16 22:25:28 +0200 |
commit | c5b0889ccb64e6fc8aaa7c70bff8c30efb4efdde (patch) | |
tree | 81a07d8a2494fcf0bd430fa74716dd85b766bc2d /include/wchar.h | |
parent | update todo (diff) | |
download | slibc-c5b0889ccb64e6fc8aaa7c70bff8c30efb4efdde.tar.gz slibc-c5b0889ccb64e6fc8aaa7c70bff8c30efb4efdde.tar.bz2 slibc-c5b0889ccb64e6fc8aaa7c70bff8c30efb4efdde.tar.xz |
the compiler determines how wchar is implement + intconf.h contains the signess of char
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | include/wchar.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/wchar.h b/include/wchar.h index aade683..4437e6d 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -42,7 +42,17 @@ * End of a wide-character stream */ #ifndef WEOF -# define WEOF -1L +# if __WCHAR_BIT == __CHAR_BIT +# define WEOF -1 +# elif __WCHAR_BIT == __SHORT_BIT +# define WEOF -1 +# elif __WCHAR_BIT == __INT_BIT +# define WEOF -1 +# elif __WCHAR_BIT == __LONG_BIT +# define WEOF -1L +# else +# define WEOF -1LL +# endif #endif |