summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-02-03 09:58:47 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-02-03 09:58:47 +0000
commit5feca068d740b165d3c36a690f5a68b7588b6625 (patch)
tree6030913f9b6b7d87cc3610babffb3b94d4ea0559 /os
parent3dda2fe0e2e7e4d2c058d32fa8691d12386b978d (diff)
Bugzilla #1865 (https://bugs.freedesktop.org/show_bug.cgi?id=1865)
attachment #1827 (https://bugs.freedesktop.org/attachment.cgi?id=1827): check for va_copy not being defined and use __va_copy if available
Diffstat (limited to 'os')
-rw-r--r--os/xprintf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/xprintf.c b/os/xprintf.c
index 6fa530bd2..ee5d7daf6 100644
--- a/os/xprintf.c
+++ b/os/xprintf.c
@@ -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)