summaryrefslogtreecommitdiff
path: root/src/ctype/iswspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/iswspace.c')
-rw-r--r--src/ctype/iswspace.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ctype/iswspace.c b/src/ctype/iswspace.c
index b0c0ae18..75ae7e8e 100644
--- a/src/ctype/iswspace.c
+++ b/src/ctype/iswspace.c
@@ -1,6 +1,6 @@
#include <wchar.h>
#include <wctype.h>
-#include <ctype.h>
+#include "libc.h"
/* Our definition of whitespace is the Unicode White_Space property,
* minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script-
@@ -16,3 +16,10 @@ int iswspace(wint_t wc)
};
return wc && wcschr(spaces, wc);
}
+
+int __iswspace_l(wint_t c, locale_t l)
+{
+ return iswspace(c);
+}
+
+weak_alias(__iswspace_l, iswspace_l);