p_compiler: add replacement va_copy

This might technically not always be correct, because va_copy might
be a function, or a system might not have va_copy, and not work with
assignment.

Hopefully this is never the case.
Without configure tests, it doesn't seem possible to do better.
This commit is contained in:
Luca Barbieri 2010-08-21 00:39:31 +02:00
parent 7f80041efa
commit 9960200d5e
1 changed files with 8 additions and 0 deletions

View File

@ -79,6 +79,14 @@ typedef unsigned char boolean;
#define FALSE false
#endif
#ifndef va_copy
#ifdef __va_copy
#define va_copy(dest, src) __va_copy((dest), (src))
#else
#define va_copy(dest, src) (dest) = (src)
#endif
#endif
/* Function inlining */
#ifndef INLINE
# ifdef __cplusplus