From b291e0cd9710b874d981be42ea8872818ec69fe5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Sep 2015 18:24:58 +0200 Subject: add WEOF to wchar.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/wchar.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/wchar.h b/include/wchar.h index c9d2245..755b583 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -38,6 +38,14 @@ #include +/** + * End of a wide-character stream + */ +#ifndef WEOF +# define WEOF -1L +#endif + + /** * `wchar_t` version of `strlen`. * -- cgit v1.2.3-70-g09d2