about summary refs log tree commit diff
path: root/wcsmbs/wcsstr.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-03-19 10:15:27 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-11 14:21:32 -0300
commit4b717562c4768883a87f62d67610c0a48e911445 (patch)
tree1aceb449aab6f90216299930f8356c9463fe3649 /wcsmbs/wcsstr.c
parent686d5420253bd76b1b7458f91d6ef9fc1a12b229 (diff)
downloadglibc-4b717562c4768883a87f62d67610c0a48e911445.tar.gz
glibc-4b717562c4768883a87f62d67610c0a48e911445.tar.xz
glibc-4b717562c4768883a87f62d67610c0a48e911445.zip
wcsmbs: Add test-wcsstr
Parametrize test-strstr.c so it can be used to check wcsstr.

Checked on x86_64-linux-gnu and aarch64-linux-gnu.

Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'wcsmbs/wcsstr.c')
-rw-r--r--wcsmbs/wcsstr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/wcsmbs/wcsstr.c b/wcsmbs/wcsstr.c
index 78f1cc9ce0..b49630c1cf 100644
--- a/wcsmbs/wcsstr.c
+++ b/wcsmbs/wcsstr.c
@@ -28,8 +28,12 @@
 
 #include <wchar.h>
 
+#ifndef WCSSTR
+# define WCSSTR wcsstr
+#endif
+
 wchar_t *
-wcsstr (const wchar_t *haystack, const wchar_t *needle)
+WCSSTR (const wchar_t *haystack, const wchar_t *needle)
 {
   wchar_t b, c;