changeset 13301:6e54425a173a

wcwidth: Declare also when it's aliased.
author Bruno Haible <bruno@clisp.org>
date Sun, 02 May 2010 23:03:16 +0200
parents 6aeb740648c5
children 38bc4e23ff1e
files ChangeLog lib/wchar.in.h
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/wchar.in.h
+++ b/lib/wchar.in.h
@@ -407,7 +407,7 @@
 _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