引用宏出现的问题
#ifndef ZEXTERN
#define ZEXTERN(x) static x
#endif
#ifndef ZEXPORT
#define ZEXPORT(x) static x
#endif
#ifndef OF
#define OF(args) args
#endif
#define zlib_version zlibVersion()
在编译时,遇到ZEXTERN const char * ZEXPORT zlibVersion OF((void));这句报错:
1>c:\users\12120813\desktop\sfxcp\sfx\zlib123\zlib.h(212): error C2054: 在“ZEXTERN”之后应输入“(”
1>c:\users\12120813\desktop\sfxcp\sfx\zlib123\zlib.h(212): error C2085: “ZEXPORT”: 不在形参表中
1>c:\users\12120813\desktop\sfxcp\sfx\zlib123\zlib.h(212): error C2146: 语法错误: 缺少“,”(在标识符“zlibVersion”的前面)
1>c:\users\12120813\desktop\sfxcp\sfx\zlib123\zlib.h(212): error C2143: 语法错误 : 缺少“;”(在“(”的前面)
1>c:\users\12120813\desktop\sfxcp\sfx\zlib123\zlib.h(212): error C2059: 语法错误:“)”。
这些错误怎么解决啊,应该是宏引用出现的异常,请各位高手支招,拜谢!