summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/stdarg.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-12-18 03:28:08 +0000
committerobrien <obrien@FreeBSD.org>2001-12-18 03:28:08 +0000
commit7bdd95a9ab45ef5b5f86c31655bd16aeb5877423 (patch)
tree335955cde9bb4b9473f3b5ca6ae81cd48f996608 /sys/i386/include/stdarg.h
parent07b826ed269a3fa089c7e6f2c0041501095a0ef9 (diff)
downloadFreeBSD-src-7bdd95a9ab45ef5b5f86c31655bd16aeb5877423.zip
FreeBSD-src-7bdd95a9ab45ef5b5f86c31655bd16aeb5877423.tar.gz
With GCC 3, we *must* use the GCC stdarg.h. We can no longer just make
_BSD_VA_LIST_ match what we think the compiler is doing.
Diffstat (limited to 'sys/i386/include/stdarg.h')
-rw-r--r--sys/i386/include/stdarg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/i386/include/stdarg.h b/sys/i386/include/stdarg.h
index 16ea520..3c7f17b 100644
--- a/sys/i386/include/stdarg.h
+++ b/sys/i386/include/stdarg.h
@@ -37,6 +37,10 @@
#ifndef _STDARG_H_
#define _STDARG_H_
+#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || __GNUC__ > 2)
+#include <machine/gcc_stdarg.h>
+#else /* __GNUC__ */
+
#include <machine/ansi.h>
typedef _BSD_VA_LIST_ va_list;
@@ -57,4 +61,6 @@ typedef _BSD_VA_LIST_ va_list;
#define va_end(ap)
+#endif /* __GNUC__ */
+
#endif /* !_STDARG_H_ */
OpenPOWER on IntegriCloud