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:
parent
7f80041efa
commit
9960200d5e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue