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.
This commit is contained in:
David E. O'Brien 2001-12-18 03:28:08 +00:00
parent 7512c816c0
commit 99364715f7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88107

View File

@ -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_ */