aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/include
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-07-09 12:16:59 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-07-09 12:16:59 +0200
commitee213019b7ffbb68e14ac9933edafd55867e7085 (patch)
tree80e6b902218a987c3e58e050db6e901ae10cf4a1 /runtime/include
parent0b3de9f75047444c7ac36196f69733c4640e97be (diff)
downloadcompcert-kvx-ee213019b7ffbb68e14ac9933edafd55867e7085.tar.gz
compcert-kvx-ee213019b7ffbb68e14ac9933edafd55867e7085.zip
Also test if the __VA_LIST macro is defined to avoid problems with the typedefs in stdio, etc. for the diab compiler.
Diffstat (limited to 'runtime/include')
-rw-r--r--runtime/include/stdarg.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/include/stdarg.h b/runtime/include/stdarg.h
index 272b6320..3e9eaf95 100644
--- a/runtime/include/stdarg.h
+++ b/runtime/include/stdarg.h
@@ -45,13 +45,19 @@ typedef __builtin_va_list __gnuc_va_list;
#ifdef _STDARG_H
+#ifdef __DCC__
#ifndef _VA_LIST_T
#define _VA_LIST_T
-typedef __builtin_va_list va_list;
#endif
-
#ifndef __VA_LIST
#define __VA_LIST
+typedef __builtin_va_list va_list;
+#endif
+#else
+#ifndef _VA_LIST_T
+#define _VA_LIST_T
+typedef __builtin_va_list va_list;
+#endif
#endif
#define va_start(v,l) __builtin_va_start(v,l)