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
|
@ -30,6 +30,14 @@
|
|||
#include "os.h"
|
||||
#include <stdarg.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 *
|
||||
Xvprintf(const char *format, va_list va)
|
||||
|
|
Loading…
Reference in New Issue