在C++程序中使用C头

Rah*_*ngh -1 c c++ compiler-construction compiler-errors compilation

我有一个包含枚举的C头文件

typedef enum {leaf, operator} my_type;
Run Code Online (Sandbox Code Playgroud)

现在当我尝试在我的C++程序中包含此标题时,我得到错误"'运算符'之前的预期标识符"

我怎么能摆脱它.

Col*_*lin 7

运算符是C++中的保留字.将enum其他部分命名为其他部分.