summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-02-17 14:17:30 +0000
committerEric Andersen <andersen@codepoet.org>2003-02-17 14:17:30 +0000
commitace65817746f24ad4c4d9f0cebce3142c21f9fc9 (patch)
treefafcd6d4f1be16d1b8a0596baea41c42cf097b9a /libc
parent6378959cedf7506e613d0c07e5e577cb36b95aff (diff)
downloaduClibc-alpine-ace65817746f24ad4c4d9f0cebce3142c21f9fc9.tar.bz2
uClibc-alpine-ace65817746f24ad4c4d9f0cebce3142c21f9fc9.tar.xz
Patch from Stefan Allius:
In libc/string/wstring I replaced a '#warning ..' statement by the link_warning macro.
Diffstat (limited to 'libc')
-rw-r--r--libc/string/wstring.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/string/wstring.c b/libc/string/wstring.c
index c1ead6e00..e649a5607 100644
--- a/libc/string/wstring.c
+++ b/libc/string/wstring.c
@@ -636,10 +636,11 @@ int Wmemcmp(const Wvoid *s1, const Wvoid *s2, size_t n)
#ifdef L_strcmp
#ifdef __LOCALE_C_ONLY
-#warning c only
#ifdef L_wcscmp
+link_warning(wcscmp,"the 'wcscmp' function supports only C|POSIX locales")
weak_alias(wcscmp,wcscoll);
#else /* L_wcscmp */
+link_warning(strcmp,"the 'strcmp' function supports only C|POSIX locales")
weak_alias(strcmp,strcoll);
#endif /* L_wcscmp */
#endif /* __LOCALE_C_ONLY */