Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/include deal with __builtin_va_start()'s introd...



details:   https://anonhg.NetBSD.org/src/rev/575c55284637
branches:  trunk
changeset: 766415:575c55284637
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 22 04:00:43 2011 +0000

description:
deal with __builtin_va_start()'s introduction.

diffstat:

 sys/arch/vax/include/stdarg.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 77f588edd0f2 -r 575c55284637 sys/arch/vax/include/stdarg.h
--- a/sys/arch/vax/include/stdarg.h     Wed Jun 22 03:59:49 2011 +0000
+++ b/sys/arch/vax/include/stdarg.h     Wed Jun 22 04:00:43 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.17 2005/12/11 12:19:34 christos Exp $     */
+/*     $NetBSD: stdarg.h,v 1.18 2011/06/22 04:00:43 mrg Exp $  */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -44,7 +44,11 @@
 #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))



Home | Main Index | Thread Index | Old Index