bison-patches
[Top][All Lists]
Advanced

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

Re: Bug on NetBSD : redefinition of wint_t


From: Akim Demaille
Subject: Re: Bug on NetBSD : redefinition of wint_t
Date: 06 Aug 2001 10:18:44 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor)

Hi Jim, Hi Paul,

What do you think about this?  I'm a bit afraid to apply this patch as
it might break other systems.  Maybe that's something we should handle
at configure.in's level, probably checking whether we can include
stddef and wchar together.

No idea...

----------------------------------------------------------------------

I send this patch, because on NetBSD system, there are a problem between
`stddef.h' and `wchar.h' which are included in `lib/quotearg.c'. Both
define the `wint_t' type with different declarations.
This is the best way that I've found to solve this problem.

--- ChangeLog-old       Sun Aug  5 14:47:37 2001
+++ ChangeLog   Sun Aug  5 14:55:45 2001
@@ -1,3 +1,8 @@
+2001-08-05  Pascal Bart  <address@hidden>
+
+       * lib/quotearg.c (HAVE_STDDEF_H): Prevent from conflict definition of
+       wint_t.
+
 2001-08-04  Pascal Bart  <address@hidden>

        * tests/atconfig.in (CPPFLAGS): Add.
--- lib/quotearg.c-old  Sun Aug  5 14:47:53 2001
+++ lib/quotearg.c      Sun Aug  5 14:52:14 2001
@@ -22,7 +22,9 @@
 #endif

 #if HAVE_STDDEF_H
+# define wint_t NULLwint_t  /* Prevent form redefinition of wint_t. */
 # include <stddef.h>  /* For the definition of size_t on windows w/MSVC.  */
+# undef wint_t
 #endif
 #include <sys/types.h>
 #include <quotearg.h>



reply via email to

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