Module Name:    src
Committed By:   mrg
Date:           Wed Jun 22 04:00:43 UTC 2011

Modified Files:
        src/sys/arch/vax/include: stdarg.h

Log Message:
deal with __builtin_va_start()'s introduction.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/vax/include/stdarg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/include/stdarg.h
diff -u src/sys/arch/vax/include/stdarg.h:1.17 src/sys/arch/vax/include/stdarg.h:1.18
--- src/sys/arch/vax/include/stdarg.h:1.17	Sun Dec 11 12:19:34 2005
+++ src/sys/arch/vax/include/stdarg.h	Wed Jun 22 04:00:43 2011
@@ -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))

Reply via email to