diff options
| author | kleink <kleink@NetBSD.org> | 2000-02-03 16:16:06 +0000 |
|---|---|---|
| committer | kleink <kleink@NetBSD.org> | 2000-02-03 16:16:06 +0000 |
| commit | 82464e46d67d0ecd281d5eebfdea43bcbd798ddb (patch) | |
| tree | 17422fbd248fd6c9196ccf13a96647fd5965acf4 /sys/arch/alpha/include | |
| parent | 5b676281088d90e0005ced1a16e9c9e7c1b79d54 (diff) | |
Add a C99-style va_copy macro.
Diffstat (limited to 'sys/arch/alpha/include')
| -rw-r--r-- | sys/arch/alpha/include/stdarg.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/stdarg.h b/sys/arch/alpha/include/stdarg.h index d865735e939..b9a5c64316c 100644 --- a/sys/arch/alpha/include/stdarg.h +++ b/sys/arch/alpha/include/stdarg.h @@ -1,4 +1,4 @@ -/* $NetBSD: stdarg.h,v 1.9 1999/05/03 16:30:31 christos Exp $ */ +/* $NetBSD: stdarg.h,v 1.10 2000/02/03 16:16:06 kleink Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -39,6 +39,7 @@ #define _ALPHA_STDARG_H_ #include <machine/ansi.h> +#include <sys/featuretest.h> #ifdef __lint__ #define __builtin_saveregs() (0) @@ -63,6 +64,13 @@ typedef _BSD_VA_LIST_ va_list; (*(type *)((ap).__offset += __va_size(type), \ (ap).__base + (ap).__offset + __va_arg_offset(ap, type))) +#if !defined(_ANSI_SOURCE) && \ + (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \ + defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L) +#define va_copy(dest, src) \ + ((dest) = (src)) +#endif + #define va_end(ap) #endif /* !_ALPHA_STDARG_H_ */ |
