TarsCloud / Tars

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
BSD 3-Clause "New" or "Revised" License
9.8k stars 2.08k forks source link

[建议]文件util\include\util\tc_port.h中mode_t类型定义修改 #865

Open JanuarYJL opened 3 years ago

JanuarYJL commented 3 years ago

image

【原因】这个文件中的mode_t类型义与多个库及文件存在冲突,会产生重定义的编译报错 如: folly库: image folly\portability\SysTypes.h

mingw头文件: image mingw64\x86_64-w64-mingw32\include\sys\types.h

【建议】参照mysql的my_global.h文件中的方式,另外命名,涉及代码较少容易修改 image

ruanshudong commented 3 years ago

是不是放到namespace里面去也行?

ruanshudong commented 3 years ago

要不你改一下试一试, 提交一个pr上来