diff options
author | obrien <obrien@FreeBSD.org> | 2001-10-18 00:27:39 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-10-18 00:27:39 +0000 |
commit | 1d7ce16d9a3572244364209ace928055430d9188 (patch) | |
tree | 84383ae718384c358c7a75c64216f96bcb9d657b /sys/powerpc | |
parent | 1ee32f686afeb4412e5ee8322eab387bf3f2ac6a (diff) | |
download | FreeBSD-src-1d7ce16d9a3572244364209ace928055430d9188.zip FreeBSD-src-1d7ce16d9a3572244364209ace928055430d9188.tar.gz |
Add support for "__gnuc_va_list". Some overly "smart" libraries assume
the existence of the __gnuc_va_list type[*] because our compiler is GCC.
[*] __gnuc_va_list is defined in the GCC ginclude/stdarg.h replacement
headerwhich we don't use.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/ansi.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/powerpc/include/ansi.h b/sys/powerpc/include/ansi.h index 733b0d7..7b8a05e 100644 --- a/sys/powerpc/include/ansi.h +++ b/sys/powerpc/include/ansi.h @@ -71,8 +71,11 @@ #define _BSD_OFF_T_ __int64_t /* file offset */ #define _BSD_PID_T_ int /* process [group] */ -#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95) -#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */ +#if defined __GNUC__ +#if (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95) +#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */ +#endif +typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/ #else typedef struct { char __gpr; |