* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
+2020-12-20 Bruno Haible <bruno@clisp.org>
+
+ Remove support for broken <wchar.h> in AIX 3.
+ * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
+
2020-12-20 Bruno Haible <bruno@clisp.org>
Remove support for broken <wchar.h> in BSD/OS and OSF/1.
-# 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,
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
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