日期:2014-05-16  浏览次数:20669 次

unistd.h
能在vc中解决这个问题么?
fatal error C1083: Cannot open include file: 'unistd.h': No such file or director
------解决方案--------------------
#ifndef WIN32
#include <unistd.h>
#endif

在windows下编译的时候,启用宏定义WIN32
在linux下编译的时候,不启用