summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2003-01-04 00:13:52 +0000
committermiod <miod@openbsd.org>2003-01-04 00:13:52 +0000
commit281400ab1e93076ef34e58b60d15d63ccf4e5bad (patch)
treea8e9f3d1a3b5b624ce61cdc1ed269c2f474dba01
parentFix *longjmp() return values. (diff)
downloadwireguard-openbsd-281400ab1e93076ef34e58b60d15d63ccf4e5bad.tar.xz
wireguard-openbsd-281400ab1e93076ef34e58b60d15d63ccf4e5bad.zip
A va_copy macro without drugs inside. Shupid miod.
-rw-r--r--sys/arch/mvme88k/include/va-m88k.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/sys/arch/mvme88k/include/va-m88k.h b/sys/arch/mvme88k/include/va-m88k.h
index a53d4d71ed4..e6e6f8eba3e 100644
--- a/sys/arch/mvme88k/include/va-m88k.h
+++ b/sys/arch/mvme88k/include/va-m88k.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: va-m88k.h,v 1.8 2003/01/03 01:46:10 miod Exp $ */
+/* $OpenBSD: va-m88k.h,v 1.9 2003/01/04 00:13:52 miod Exp $ */
/* This file has local changes by MOTOROLA
Thu Sep 9 09:06:29 CDT 1993 Dale Rahn (drahn@pacific)
@@ -65,19 +65,10 @@ typedef __va_list __gnuc_va_list;
#define va_end(AP)
/* Copy __gnuc_va_list into another variable of this type. */
-#if __GNUC_MAJOR__ > 2 || __GNUC_MINOR > 8
-#define __va_copy(dest, src) \
- __extension__ ({ \
- (dest) = \
- (__gnuc_va_list *)__builtin_alloca(sizeof(__gnuc_va_list)); \
- *(dest) = *(src);\
- })
-#else
-#define __va_copy(dest, src) *(dest) = *(src)
-#endif
+#define __va_copy(dest, src) (dest) = (src)
#if !defined(_ANSI_SOURCE) && \
- (defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+ (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
#define va_copy(dest, src) __va_copy(dest, src)
#endif