From ace65817746f24ad4c4d9f0cebce3142c21f9fc9 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 17 Feb 2003 14:17:30 +0000 Subject: Patch from Stefan Allius: In libc/string/wstring I replaced a '#warning ..' statement by the link_warning macro. --- libc/string/wstring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc') 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 */ -- cgit v1.2.3