Browse Source

Patch from Stefan Allius:

    In libc/string/wstring I replaced a '#warning ..' statement by the
    link_warning macro.
Eric Andersen 22 years ago
parent
commit
ace6581774
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libc/string/wstring.c

+ 2 - 1
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 */