bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] wcwidth on OSF/1


From: Bruno Haible
Subject: Re: [bug-gnulib] wcwidth on OSF/1
Date: Fri, 11 Aug 2006 15:06:46 +0200
User-agent: KMail/1.9.1

Albert Chin wrote:
> > > cc: Error: /usr/include.dtk/wchar.h, line 87: Ill-formed parameter type
> > > list. (parmtyplist)
> > >                 __VA_LIST__ __arg);
> > > ----------------^
> > > configure:14834: $? = 1
>
> The fix is to #include <stdio.h> before <wchar.h>.

Confirmed. Thanks, Albert! I wasn't aware that this was the same bug
that we work around in so many other places.

I'm adding the fix below to gnulib. No need any more for -I/usr/include
or option -nodtk.

2006-08-11  Bruno Haible  <address@hidden>

        * wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h> before
        <wchar.h>. Needed for OSF/1 and BSD/OS.

*** wcwidth.m4  31 Jul 2006 14:42:54 -0000      1.4
--- wcwidth.m4  11 Aug 2006 13:07:00 -0000
***************
*** 1,4 ****
! # wcwidth.m4 serial 4
  dnl Copyright (C) 2006 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # wcwidth.m4 serial 5
  dnl Copyright (C) 2006 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,24 ****
--- 19,30 ----
  /* AIX 3.2.5 declares wcwidth in <string.h>. */
  #include <string.h>
  #if HAVE_WCHAR_H
+ /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
+    <wchar.h>.
+    BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
+    <wchar.h>.  */
+ # include <stdio.h>
+ # include <time.h>
  # include <wchar.h>
  #endif
  ])])




reply via email to

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