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 Use __builtin_va_list when GCC >= 2.96
details: https://anonhg.NetBSD.org/src/rev/b4cdb42223ce
branches: trunk
changeset: 493998:b4cdb42223ce
user: matt <matt%NetBSD.org@localhost>
date: Wed Jun 28 21:13:35 2000 +0000
description:
Use __builtin_va_list when GCC >= 2.96
diffstat:
sys/arch/vax/include/ansi.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 2115c782dac6 -r b4cdb42223ce sys/arch/vax/include/ansi.h
--- a/sys/arch/vax/include/ansi.h Wed Jun 28 20:37:44 2000 +0000
+++ b/sys/arch/vax/include/ansi.h Wed Jun 28 21:13:35 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ansi.h,v 1.8 2000/06/27 05:53:24 kleink Exp $ */
+/* $NetBSD: ansi.h,v 1.9 2000/06/28 21:13:35 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -38,6 +38,8 @@
#ifndef _ANSI_H_
#define _ANSI_H_
+#include <sys/cdefs.h>
+
/*
* Types which are fundamental to the implementation and may appear in
* more than one standard header are defined here. Standard headers
@@ -54,7 +56,11 @@
#define _BSD_SIZE_T_ unsigned int /* sizeof() */
#define _BSD_SSIZE_T_ int /* byte count or error */
#define _BSD_TIME_T_ long /* time() */
+#if __GNU_PREREQ__(2,96)
+#define _BSD_VA_LIST_ __builtin_va_list * /* va_list */
+#else
#define _BSD_VA_LIST_ char * /* va_list */
+#endif
#define _BSD_WCHAR_T_ int /* wchar_t */
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_CLOCKID_T_ int /* clockid_t */
Home |
Main Index |
Thread Index |
Old Index