aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/stdarg.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2003-10-24 02:50:39 +0000
committerPeter Wemm <peter@FreeBSD.org>2003-10-24 02:50:39 +0000
commitcedb3695c1e06f7f0ed01ae6877f9ebef5d83cf4 (patch)
tree3f1aa0589010c4cd0dfa7f08a9649993ee81b413 /sys/amd64/include/stdarg.h
parent5c03a7c7f94c760e3d1d57bccdd0f938902ae184 (diff)
downloadsrc-cedb3695c1e06f7f0ed01ae6877f9ebef5d83cf4.tar.gz
src-cedb3695c1e06f7f0ed01ae6877f9ebef5d83cf4.zip
Add __va_copy and make it always visible, in spite of the __ISO_C_VISIBLE
setting. Make va_copy be an alias if __ISO_C_VISIBLE >= 1999. Why? 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 if at all possible on amd64. It generally isn't a problem for i386 and its ilk because autoconf driven code tends to fall back to an assignment.
Notes
Notes: svn path=/head/; revision=121450
Diffstat (limited to 'sys/amd64/include/stdarg.h')
-rw-r--r--sys/amd64/include/stdarg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/include/stdarg.h b/sys/amd64/include/stdarg.h
index c13137d93efa..60a204ad177f 100644
--- a/sys/amd64/include/stdarg.h
+++ b/sys/amd64/include/stdarg.h
@@ -46,9 +46,12 @@ typedef __va_list va_list;
#define va_arg(ap, type) \
__builtin_va_arg((ap), type)
+#define __va_copy(dest, src) \
+ __builtin_va_copy((dest), (src))
+
#if __ISO_C_VISIBLE >= 1999
#define va_copy(dest, src) \
- __builtin_va_copy((dest), (src))
+ __va_copy(dest, src)
#endif
#define va_end(ap) \