diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-12-14 21:46:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-12-14 21:46:32 +0000 |
commit | 3fce9befb1d4f65739adc427683f5a6357ee102f (patch) | |
tree | bda10871810ec2e3c47c06cfa6e07b88df5efe02 /sys/arch/powerpc/include/va-ppc.h | |
parent | 6ffc06fbc8f7e1d2c6134ab0d4563b6a189b983c (diff) |
convert _FOO_SOURCE -> __FOO_VISIBLE in machine. OK deraadt@
Diffstat (limited to 'sys/arch/powerpc/include/va-ppc.h')
-rw-r--r-- | sys/arch/powerpc/include/va-ppc.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/sys/arch/powerpc/include/va-ppc.h b/sys/arch/powerpc/include/va-ppc.h index 1da4b3dadae..028bae06382 100644 --- a/sys/arch/powerpc/include/va-ppc.h +++ b/sys/arch/powerpc/include/va-ppc.h @@ -1,6 +1,8 @@ -/* $OpenBSD: va-ppc.h,v 1.10 2002/10/24 16:59:24 drahn Exp $ */ +/* $OpenBSD: va-ppc.h,v 1.11 2005/12/14 21:46:31 millert Exp $ */ /* GNU C varargs support for the PowerPC with either the V.4 or Windows NT calling sequences */ +#include <sys/cdefs.h> + #ifndef _WIN32 /* System V.4 support */ /* Define __gnuc_va_list. */ @@ -197,17 +199,6 @@ __extension__ (*({ \ #define va_end(AP) ((void)0) /* Copy __gnuc_va_list into another variable of this type. */ -#if !defined(_ANSI_SOURCE) && \ - (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \ - defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L) -#define va_copy(dest, src) \ -__extension__ ({ \ - (dest) = \ - (struct __va_list_tag *)__builtin_alloca(sizeof(__gnuc_va_list)); \ - *(dest) = *(src);\ - }) -#endif - #define __va_copy(dest, src) \ __extension__ ({ \ (dest) = \ @@ -215,6 +206,10 @@ __extension__ ({ \ *(dest) = *(src);\ }) +#if __ISO_C_VISIBLE >= 1999 +#define va_copy(dest, src) __va_copy(dest, src) +#endif + #endif /* __VA_PPC_H__ */ #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */ |