[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug on NetBSD : redefinition of wint_t
From: |
Pascal Bart |
Subject: |
Bug on NetBSD : redefinition of wint_t |
Date: |
Sun, 5 Aug 2001 15:16:06 +0000 (GMT) |
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>
--
Pascal Bart (address@hidden)
- Bug on NetBSD : redefinition of wint_t,
Pascal Bart <=