add GCC 4.5 support.

This commit is contained in:
mrg 2011-07-03 06:45:50 +00:00
parent cba8775c43
commit cc129228dd
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: stdarg.h,v 1.9 2006/05/21 22:39:04 uwe Exp $ */
/* $NetBSD: stdarg.h,v 1.10 2011/07/03 06:45:50 mrg Exp $ */
/*
* Copyright (c) 1991, 1993
@ -42,13 +42,18 @@ typedef _BSD_VA_LIST_ va_list;
#ifdef __lint__
#define __builtin_next_arg(t) ((t) ? 0 : 0)
#define __builtin_stdarg_start(a, l) ((a) = ((l) ? 0 : 0))
#define __builtin_va_start(a, l) ((a) = ((l) ? 0 : 0))
#define __builtin_va_arg(a, t) ((t)((a) ? 0 : 0))
#define __builtin_va_end /* nothing */
#define __builtin_va_copy(d, s) ((d) = (s))
#endif
#if __GNUC_PREREQ__(2, 96)
#if __GNUC_PREREQ__(4, 5)
#define va_start(ap, last) __builtin_va_start((ap), (last))
#else
#define va_start(ap, last) __builtin_stdarg_start((ap), (last))
#endif
#define va_arg __builtin_va_arg
#define va_end __builtin_va_end
#define __va_copy(dest, src) __builtin_va_copy((dest), (src))