From: Bruno Haible <bruno@clisp.org>
Date: Sun, 2 May 2010 21:03:16 +0000 (+0200)
Subject: wcwidth: Declare also when it's aliased.
X-Git-Tag: v0.1~4186
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=28f3679a51f29cdaa8cb6c8211fa6ecaad3a852c;p=gnulib.git

wcwidth: Declare also when it's aliased.
---

diff --git a/ChangeLog b/ChangeLog
index 69e7f2693d..c65aaa4ba9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
diff --git a/lib/wchar.in.h b/lib/wchar.in.h
index fb4f1058dc..342a9d2514 100644
--- a/lib/wchar.in.h
+++ b/lib/wchar.in.h
@@ -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