Add LP64 support.

This commit is contained in:
matt 2003-01-18 21:38:03 +00:00
parent fe59493187
commit b7af0cbc04
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: stdarg.h,v 1.11 2002/12/04 17:42:51 thorpej Exp $ */
/* $NetBSD: stdarg.h,v 1.12 2003/01/18 21:38:03 matt Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@ -53,10 +53,17 @@ typedef _BSD_VA_LIST_ va_list;
#elif __GNUC_PREREQ__(3, 0)
#ifdef _LP64
#define va_start(ap, last) __builtin_stdarg_start((ap), last)
#define va_arg(ap, type) __builtin_va_arg((ap), type)
#define va_end(ap) __builtin_va_end((ap))
#define __va_copy(dest, src) __builtin_va_copy((dest), (src))
#else
#define va_start(ap, last) __builtin_stdarg_start((ap).__va, last)
#define va_arg(ap, type) __builtin_va_arg((ap).__va, type)
#define va_end(ap) __builtin_va_end((ap).__va)
#define __va_copy(dest, src) __builtin_va_copy((dest).__va, (src).__va)
#endif
#else