summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/stdarg.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2004-07-06 07:47:09 +0000
committerobrien <obrien@FreeBSD.org>2004-07-06 07:47:09 +0000
commitf8b4065a75dec3c8a74e1ec37bf6e90350c01817 (patch)
treec38969a594102997ec7dbad31396e36943e954d1 /sys/powerpc/include/stdarg.h
parent8ed5780e82e9a0f4ceef7681de5b4d2b2637564d (diff)
downloadFreeBSD-src-f8b4065a75dec3c8a74e1ec37bf6e90350c01817.zip
FreeBSD-src-f8b4065a75dec3c8a74e1ec37bf6e90350c01817.tar.gz
In the spirit of amd64/include/stdarg.h rev 1.6; add __va_copy
(but keep it conditional on __ISO_C_VISIBLE >= 1999. Why? Our out /usr/src/contrib assumes it, and more than a few ports have an autoconf that looks for __va_copy because it is available on glibc. It is critical that we use it on PowerPC. It generally isn't a problem for i386 and its ilk because those platforms can get away with cheating the C standard, using a plain assignment.
Diffstat (limited to 'sys/powerpc/include/stdarg.h')
-rw-r--r--sys/powerpc/include/stdarg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/powerpc/include/stdarg.h b/sys/powerpc/include/stdarg.h
index 75a7bd4..973da78 100644
--- a/sys/powerpc/include/stdarg.h
+++ b/sys/powerpc/include/stdarg.h
@@ -50,6 +50,9 @@ typedef __va_list va_list;
#if __ISO_C_VISIBLE >= 1999
#define va_copy(dest, src) \
__builtin_va_copy((dest), (src))
+
+#define __va_copy(dest, src) \
+ va_copy((dest), (src))
#endif
#define va_end(ap) \
OpenPOWER on IntegriCloud