bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove support for broken <wchar.h> in AIX 3


From: Bruno Haible
Subject: Remove support for broken <wchar.h> in AIX 3
Date: Mon, 21 Dec 2020 02:52:17 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

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  <bruno@clisp.org>

        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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]