diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2001-12-18 03:28:08 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-12-18 03:28:08 +0000 |
commit | 99364715f765e34621643adc9d81d4c515884b5a (patch) | |
tree | 335955cde9bb4b9473f3b5ca6ae81cd48f996608 /sys/i386 | |
parent | 7512c816c0b17a25866e5498af24fb44add53f3a (diff) | |
download | src-99364715f765e34621643adc9d81d4c515884b5a.tar.gz src-99364715f765e34621643adc9d81d4c515884b5a.zip |
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.
Notes
Notes:
svn path=/head/; revision=88107
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/include/stdarg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/i386/include/stdarg.h b/sys/i386/include/stdarg.h index 16ea5204c68d..3c7f17bb0ee6 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_ */ |