AIX 3 declared wcwidth() in the wrong header file. This is no longer an issue with newer versions of AIX.
2020-12-20 Bruno Haible <[email protected]> Remove support for broken <wchar.h> in AIX 3. * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs. diff --git a/m4/wcwidth.m4 b/m4/wcwidth.m4 index 2db36d2..4c28519 100644 --- a/m4/wcwidth.m4 +++ b/m4/wcwidth.m4 @@ -1,4 +1,4 @@ -# wcwidth.m4 serial 32 +# wcwidth.m4 serial 33 dnl Copyright (C) 2006-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -19,10 +19,8 @@ AC_DEFUN([gl_FUNC_WCWIDTH], AC_CHECK_FUNCS_ONCE([wcwidth]) AC_CHECK_DECLS([wcwidth], [], [], [[ -/* AIX 3.2.5 declares wcwidth in <string.h>. */ -#include <string.h> -#include <wchar.h> -]]) + #include <wchar.h> + ]]) if test $ac_cv_have_decl_wcwidth != yes; then HAVE_DECL_WCWIDTH=0 fi @@ -55,8 +53,6 @@ AC_DEFUN([gl_FUNC_WCWIDTH], AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include <locale.h> -/* AIX 3.2.5 declares wcwidth in <string.h>. */ -#include <string.h> #include <wchar.h> #if !HAVE_DECL_WCWIDTH extern
