mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-02-06 21:18:25 +08:00
Merge pull request #52 from nodemcu/dev094
replace custom stdarg.h header file with the one in gcc toolchain
This commit is contained in:
commit
5fd2213e9a
@ -1,6 +1,12 @@
|
|||||||
#ifndef __c_stdarg_h
|
#ifndef __c_stdarg_h
|
||||||
#define __c_stdarg_h
|
#define __c_stdarg_h
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
typedef char * va_list;
|
typedef char * va_list;
|
||||||
|
|
||||||
#define _INTSIZEOF(n) ((sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1))
|
#define _INTSIZEOF(n) ((sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1))
|
||||||
@ -11,4 +17,6 @@ typedef char * va_list;
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/* end of c_stdarg.h */
|
/* end of c_stdarg.h */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user