aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-02 18:24:58 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-02 18:24:58 +0200
commitb291e0cd9710b874d981be42ea8872818ec69fe5 (patch)
tree14c87c62852b615afe0a31757d4eae2cca33e3b3 /include
parentm misc wchar (diff)
downloadslibc-b291e0cd9710b874d981be42ea8872818ec69fe5.tar.gz
slibc-b291e0cd9710b874d981be42ea8872818ec69fe5.tar.bz2
slibc-b291e0cd9710b874d981be42ea8872818ec69fe5.tar.xz
add WEOF to wchar.h
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--include/wchar.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h
index c9d2245..755b583 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -39,6 +39,14 @@
/**
+ * End of a wide-character stream
+ */
+#ifndef WEOF
+# define WEOF -1L
+#endif
+
+
+/**
* `wchar_t` version of `strlen`.
*
* @param str The string.