我正在尝试运行一个c++代码,但是没有找到io.h。 'io.h' file not found 它显示为 #include <io.h> ? 此外,我还遇到了一堆奇怪的问题(对于一个使用了16年以上的代码): Use of undeclared identifier '_read' 或 Unknown type name '__int64'; did you mean '__int64_t'? 或 Use of undeclared identifier '_O_RDONLY' 或 Use
我正在将一些使用C的预处理宏的代码从C移植到Rust,并且只在定义了给定的宏时才包含一些代码:在本例中是O_BINARY。是否可以检查O_BINARY宏是否在我的系统上用Rust定义,如果是,这是什么样子?我正在寻找一个可以非常接近地复制这种C语法的构造:// Some extra code here// Regular code