mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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
1 changed files with 8 additions and 0 deletions
|
|
@ -79,6 +79,14 @@ typedef unsigned char boolean;
|
||||||
#define FALSE false
|
#define FALSE false
|
||||||
#endif
|
#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 */
|
/* Function inlining */
|
||||||
#ifndef INLINE
|
#ifndef INLINE
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue