summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-10-28 14:15:21 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:12 +0100
commitf034ca39df7f6f513d0d4d4f479194592ac48645 (patch)
tree4ab1c68a27cf65c5213df77c0a2e51f59a66c498 /proto.h
parentd535c86b0f886e1c4cf0ae73048bf4bdba6d0813 (diff)
use va_copy() where it exists
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 8a88829..82e5cb7 100644
--- a/proto.h
+++ b/proto.h
@@ -23,6 +23,13 @@ typedef long align_t;
#include <stdarg.h>
+/* C 9x specifies a va_copy() macro which should be used for copying
+objects of type va_list. Of course, most places don't have this yet,
+but where it does exist we need to use it. */
+#ifndef va_copy
+#define va_copy(x,y) (x)=(y)
+#endif
+
#if STDC_HEADERS
#include <stdlib.h>