./src/http/acmpstatus.c:210:1: error: unterminated argument list invoking macro "T"
./src/http/acmpstatus.c: In function 'net_status':
./src/http/acmpstatus.c:95: error: 'T' undeclared (first use in this function)
./src/http/acmpstatus.c:95: error: (Each undeclared identifier is reported only once
./src/http/acmpstatus.c:95: error: for each function it appears in.)
./src/http/acmpstatus.c:95: error: expected ')' at end of input
./src/http/acmpstatus.c:95: error: expected declaration or statement at end of input
使用的是交叉编译器 4.3.3 ,以前用3.3.2可以编译成功
源码中 T的定义
#ifdef UNICODE
/*
* To convert strings to UNICODE. We have a level of indirection so things
* like T(__FILE__) will expand properly.
*/
#define T(x) __TXT(x)
#define __TXT(s) L ## s
typedef unsigned short char_t;
typedef unsigned short uchar_t;
/*
* Text size of buffer macro. A buffer bytes will hold (size / char size)
* characters.
*/
#define TSZ(x) (sizeof(x) / sizeof(char_t))
/*
* How many ASCII bytes are required to represent this UNICODE string?
*/
#define TASTRL(x) ((wcslen(x) + 1) * sizeof(char_t))
#else
#define T(s) s
typedef char char_t;
#define TSZ(x) (sizeof(x))
#define TASTRL(x) (strlen(x) + 1)
#ifdef WIN
typedef unsigned char uchar_t;
#endif /* WIN */
#endif /* UNICODE */
求助解决方法