Define va_list as __builtin_va_list for GCC 3.x. Change stdarg macros
appropriately. (this is committed from a system run a kernel and userland built with these changes).
This commit is contained in:
parent
be53bdf66a
commit
9c8a5009b3
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ansi.h,v 1.20 2003/08/07 16:29:18 agc Exp $ */
|
||||
/* $NetBSD: ansi.h,v 1.21 2003/09/24 02:39:56 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -62,17 +62,13 @@
|
|||
#define _BSD_TIMER_T_ int /* timer_t */
|
||||
#define _BSD_SUSECONDS_T_ int /* suseconds_t */
|
||||
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
|
||||
#ifdef _LP64
|
||||
#if __GNUC_PREREQ__(3, 0)
|
||||
#define _BSD_VA_LIST_ __builtin_va_list /* GCC builtin type */
|
||||
#else
|
||||
#define _BSD_VA_LIST_ __va_list /* va_list */
|
||||
typedef struct {
|
||||
#if __GNUC_PREREQ__(3, 0)
|
||||
__builtin_va_list __va;
|
||||
#else
|
||||
char __gpr, __fpr, __pad[2];
|
||||
char *__stack, *__base;
|
||||
#endif
|
||||
} __va_list;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: stdarg.h,v 1.13 2003/04/28 23:16:22 bjh21 Exp $ */
|
||||
/* $NetBSD: stdarg.h,v 1.14 2003/09/24 02:39:57 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
|
||||
|
@ -53,17 +53,10 @@ 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue