wcwidth: Declare also when it's aliased.
authorBruno Haible <bruno@clisp.org>
Sun, 2 May 2010 21:03:16 +0000 (23:03 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 2 May 2010 21:03:16 +0000 (23:03 +0200)
ChangeLog
lib/wchar.in.h

index 69e7f26..c65aaa4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-05-02  Bruno Haible  <bruno@clisp.org>
 
+       wcwidth: Declare also when it's aliased.
+       * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
+       macro.
+
+2010-05-02  Bruno Haible  <bruno@clisp.org>
+
        Fix regression from 2010-04-25.
        * gnulib-tool (func_modules_transitive_closure): Check the status of
        all modules, not only of the tests that are of the form foo-tests where
index fb4f105..342a9d2 100644 (file)
@@ -407,7 +407,7 @@ _GL_WARN_ON_USE (wcsnrtombs, "wcsnrtombs is unportable - "
 _GL_FUNCDECL_RPL (wcwidth, int, (wchar_t));
 _GL_CXXALIAS_RPL (wcwidth, int, (wchar_t));
 # else
-#  if !defined wcwidth && !@HAVE_DECL_WCWIDTH@
+#  if !@HAVE_DECL_WCWIDTH@
 /* wcwidth exists but is not declared.  */
 _GL_FUNCDECL_SYS (wcwidth, int, (wchar_t));
 #  endif