Browse Source

replace custom stdarg.h header file with the one in toolchain

funshine 9 years ago
parent
commit
f1d87ee7ee
1 changed files with 8 additions and 0 deletions
  1. 8 0
      app/libc/c_stdarg.h

+ 8 - 0
app/libc/c_stdarg.h

@@ -1,6 +1,12 @@
 #ifndef __c_stdarg_h
 #define __c_stdarg_h
 
+#if defined(__GNUC__)
+
+#include <stdarg.h>
+
+#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 */