summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-03-24 11:25:46 +0000
committerobrien <obrien@FreeBSD.org>2002-03-24 11:25:46 +0000
commit8842976cdd6c89916f7799133a97e4f32b4ad3c8 (patch)
tree36338a04e8b50b4ccfbc489d7b0d173075ecddd8 /sys/ia64/include
parent91037c66c7afa846ca7d1c48ecedf89d3b4a0e57 (diff)
downloadFreeBSD-src-8842976cdd6c89916f7799133a97e4f32b4ad3c8.zip
FreeBSD-src-8842976cdd6c89916f7799133a97e4f32b4ad3c8.tar.gz
Guard against redefining __gnuc_va_list.
Diffstat (limited to 'sys/ia64/include')
-rw-r--r--sys/ia64/include/ansi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ia64/include/ansi.h b/sys/ia64/include/ansi.h
index 6c15635..7ab8210 100644
--- a/sys/ia64/include/ansi.h
+++ b/sys/ia64/include/ansi.h
@@ -73,10 +73,14 @@
#ifdef __GNUC__
#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
-typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
+typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#else
#error Must add va_list support for this non-GCC compiler.
#endif /*__GNUC__*/
+#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
+#define __GNUC_VA_LIST
+typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
+#endif
/*
* The rune type above is declared to be an ``int'' instead of the more natural
OpenPOWER on IntegriCloud