阅读背景:

基于操作系统的C ++条件编译

来源:互联网 

I would like to write a cross-platform function in C++ that contains system calls. What conditional compilation flags can I check to determine which operating system the code is being compiled for? I'm interested mostly in Windows and Linux, using Visual Studio and GCC.I would like to write a cross-platform function




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: