Commit 437ac774 authored by Bernhard Schommer's avatar Bernhard Schommer
Browse files

Better define the __GNUC__ macro which avoids the inclusion of va_list header...

Better define the __GNUC__ macro which avoids the inclusion of va_list header and set the __VA_LIST macro if it is not defined.
parent 0c7c17e0
......@@ -113,7 +113,7 @@ case "$target" in
struct_return="int1-8"
system="diab"
cc="${toolprefix}dcc"
cprepro="${toolprefix}dcc -E -D__Iva_list"
cprepro="${toolprefix}dcc -E -D__GNUC__"
casm="${toolprefix}das"
asm_supports_cfi=false
clinker="${toolprefix}dcc"
......
......@@ -50,6 +50,10 @@ typedef __builtin_va_list __gnuc_va_list;
typedef __builtin_va_list va_list;
#endif
#ifndef __VA_LIST
#define __VA_LIST
#endif
#define va_start(v,l) __builtin_va_start(v,l)
#define va_end(v) __builtin_va_end(v)
#define va_arg(v,l) __builtin_va_arg(v,l)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment