attachment #1827 (https://bugs.freedesktop.org/attachment.cgi?id=1827): check for va_copy not being defined and use __va_copy if available
This commit is contained in:
parent
3dda2fe0e2
commit
5feca068d7
|
@ -31,6 +31,14 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifndef va_copy
|
||||||
|
# ifdef __va_copy
|
||||||
|
# define va_copy __va_copy
|
||||||
|
# else
|
||||||
|
# error "no working va_copy was found"
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
char *
|
char *
|
||||||
Xvprintf(const char *format, va_list va)
|
Xvprintf(const char *format, va_list va)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue