summaryrefslogtreecommitdiffstats
path: root/sys/arm
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/arm
parent91037c66c7afa846ca7d1c48ecedf89d3b4a0e57 (diff)
downloadFreeBSD-src-8842976cdd6c89916f7799133a97e4f32b4ad3c8.zip
FreeBSD-src-8842976cdd6c89916f7799133a97e4f32b4ad3c8.tar.gz
Guard against redefining __gnuc_va_list.
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/include/ansi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arm/include/ansi.h b/sys/arm/include/ansi.h
index 8e7a9bd..8d5cdba 100644
--- a/sys/arm/include/ansi.h
+++ b/sys/arm/include/ansi.h
@@ -74,7 +74,8 @@
#else
#define _BSD_VA_LIST_ char * /* va_list */
#endif /* post GCC 2.95 */
-#ifdef __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
OpenPOWER on IntegriCloud