diff options
| author | tgoodwin <tgoodwin> | 1998-10-28 14:15:21 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:12 +0100 |
| commit | f034ca39df7f6f513d0d4d4f479194592ac48645 (patch) | |
| tree | 4ab1c68a27cf65c5213df77c0a2e51f59a66c498 /proto.h | |
| parent | d535c86b0f886e1c4cf0ae73048bf4bdba6d0813 (diff) | |
use va_copy() where it exists
Diffstat (limited to 'proto.h')
| -rw-r--r-- | proto.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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> |