]> Savannah Git Hosting - gnulib.git/commitdiff
Remove support for broken <wchar.h> in AIX 3.
authorBruno Haible <bruno@clisp.org>
Mon, 21 Dec 2020 01:49:20 +0000 (02:49 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 21 Dec 2020 01:49:20 +0000 (02:49 +0100)
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.

ChangeLog
m4/wcwidth.m4

index 8d070e8b130ce0248e3d423b6361d0a17cdeb133..8bf1adf9395271897c5f046f8ff36167e294b391 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index 2db36d2750d687758f07cceaee7b470883208734..4c2851927981955083c2369152aae6b5f24ffa67 100644 (file)
@@ -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