From f1d87ee7ee1dd81eee0b60a739496b1e1d70e367 Mon Sep 17 00:00:00 2001 From: funshine Date: Fri, 26 Dec 2014 21:24:28 +0800 Subject: [PATCH] replace custom stdarg.h header file with the one in toolchain --- app/libc/c_stdarg.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/libc/c_stdarg.h b/app/libc/c_stdarg.h index ed1222c9..d4018d6b 100644 --- a/app/libc/c_stdarg.h +++ b/app/libc/c_stdarg.h @@ -1,6 +1,12 @@ #ifndef __c_stdarg_h #define __c_stdarg_h +#if defined(__GNUC__) + +#include + +#else + typedef char * va_list; #define _INTSIZEOF(n) ((sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1)) @@ -11,4 +17,6 @@ typedef char * va_list; #endif +#endif + /* end of c_stdarg.h */