Open JanuarYJL opened 3 years ago
【原因】这个文件中的mode_t类型义与多个库及文件存在冲突,会产生重定义的编译报错 如: folly库: folly\portability\SysTypes.h
mingw头文件: mingw64\x86_64-w64-mingw32\include\sys\types.h
【建议】参照mysql的my_global.h文件中的方式,另外命名,涉及代码较少容易修改
是不是放到namespace里面去也行?
要不你改一下试一试, 提交一个pr上来
【原因】这个文件中的mode_t类型义与多个库及文件存在冲突,会产生重定义的编译报错 如: folly库: folly\portability\SysTypes.h
mingw头文件: mingw64\x86_64-w64-mingw32\include\sys\types.h
【建议】参照mysql的my_global.h文件中的方式,另外命名,涉及代码较少容易修改