typedef
enum {
MDIN_HOST_DATA_NONE = 0,
// host data map mode 0
#if
defined(SYSTEM_USE_MDIN380)
MDIN_HOST_DATA_MAP0 = 0,
// host data map mode 0
MDIN_HOST_DATA_MAP1 = 1,
// host data map mode 1
MDIN_HOST_DATA_MAP2 = 2,
// host data map mode 2
MDIN_HOST_DATA_MAP3 = 3
// host data map mode 3
#endif
} MDIN_HOST_DATA_MAP_t; //语法错误Error: syntax error
当我将大括号移上去的时候,如下
typedef
enum {
MDIN_HOST_DATA_NONE = 0,
// host data map mode 0
#if
defined(SYSTEM_USE_MDIN380)
MDIN_HOST_DATA_MAP0 = 0,
// host data map mode 0
MDIN_HOST_DATA_MAP1 = 1,
// host data map mode 1
MDIN_HOST_DATA_MAP2 = 2,
// host data map mode 2
MDIN_HOST_DATA_MAP3 = 3
// host data map mode 3
#endif } MDIN_HOST_DATA_MAP_t;
//问题变成了Error [1020] unexpected input following '#endif'
这是什么意思,搞不懂啊 |