Use the correct version of va_arg() for _STANDALONE.
This commit is contained in:
parent
02b65f0c5c
commit
a6a5d9fa2b
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: stdarg.h,v 1.1 2001/01/10 19:02:07 bjh21 Exp $ */
|
/* $NetBSD: stdarg.h,v 1.2 2001/12/20 20:29:09 thorpej Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
|
@ -52,7 +52,7 @@ typedef _BSD_VA_LIST_ va_list;
|
||||||
#define va_start(ap, last) \
|
#define va_start(ap, last) \
|
||||||
((ap) = (va_list)__builtin_next_arg(last))
|
((ap) = (va_list)__builtin_next_arg(last))
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#if defined(_KERNEL) || defined(_STANDALONE)
|
||||||
#define va_arg(ap, type) \
|
#define va_arg(ap, type) \
|
||||||
((type *)(ap += sizeof(type)))[-1]
|
((type *)(ap += sizeof(type)))[-1]
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue