summaryrefslogtreecommitdiff
path: root/libc/string/strtok.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/strtok.c')
-rw-r--r--libc/string/strtok.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/string/strtok.c b/libc/string/strtok.c
index 4b8aef6b5..127497c9d 100644
--- a/libc/string/strtok.c
+++ b/libc/string/strtok.c
@@ -9,12 +9,14 @@
#if 0 /*def WANT_WIDE*/
# define Wstrtok wcstok
-# define Wstrtok_r __wcstok_r
+# define Wstrtok_r wcstok_r
#else
# define Wstrtok strtok
-# define Wstrtok_r __strtok_r
+# define Wstrtok_r strtok_r
#endif
+libc_hidden_proto(Wstrtok_r)
+
Wchar *Wstrtok(Wchar * __restrict s1, const Wchar * __restrict s2)
{
static Wchar *next_start; /* Initialized to 0 since in bss. */