From f034ca39df7f6f513d0d4d4f479194592ac48645 Mon Sep 17 00:00:00 2001 From: tgoodwin Date: Wed, 28 Oct 1998 14:15:21 +0000 Subject: use va_copy() where it exists --- proto.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'proto.h') 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 +/* 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 -- cgit v1.2.3