From ee213019b7ffbb68e14ac9933edafd55867e7085 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Thu, 9 Jul 2015 12:16:59 +0200 Subject: Also test if the __VA_LIST macro is defined to avoid problems with the typedefs in stdio, etc. for the diab compiler. --- runtime/include/stdarg.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'runtime/include') 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) -- cgit