summaryrefslogtreecommitdiff
path: root/sys/arch/vax/include/stdarg.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-10-23 15:38:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-10-23 15:38:17 +0000
commit212dd804bd51ed406b546164f1c7e90f484f8a4f (patch)
treecbcebdfa61bb9145f06d8d9f9eff646d8447a579 /sys/arch/vax/include/stdarg.h
parent95ae11115c4c9ec9f867fa2f73df1c4428a5c4ab (diff)
Add a trivial va_copy() macro to all architectures but powerpc
(which I will leave for Dale since it needs special handling). From NetBSD (and same as sparc64). espie@ OK
Diffstat (limited to 'sys/arch/vax/include/stdarg.h')
-rw-r--r--sys/arch/vax/include/stdarg.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/vax/include/stdarg.h b/sys/arch/vax/include/stdarg.h
index 97d3cdce40f..f647fafff16 100644
--- a/sys/arch/vax/include/stdarg.h
+++ b/sys/arch/vax/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.4 2000/04/26 03:08:42 bjc Exp $ */
+/* $OpenBSD: stdarg.h,v 1.5 2002/10/23 15:38:16 millert Exp $ */
/* $NetBSD: stdarg.h,v 1.11 1999/05/03 16:30:34 christos Exp $ */
/*-
@@ -56,6 +56,13 @@ typedef _BSD_VA_LIST_ va_list;
#define va_arg(ap, type) \
(*(type *)(void *)((ap) += __va_size(type), (ap) - __va_size(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 /* !_VAX_STDARG_H_ */