在VC下编译使用unistd.h,times.h等文件

许多在Linux下开发的C程序都需要头文件unistd.h,但VC中没有个头文件,
所以用VC编译总是报错。把下面的内容保存为unistd.h,可以解决这个问题。

类似还有
#include <sys/time.h>等linux写法,

在vc中可直接#include <sys/time.h>

/** This file is part of the Mingw32 package.
 *  unistd.h maps     (roughly) to io.h
 */

#ifndef _UNISTD_H
#define _UNISTD_H

#include <io.h>
#include <process.h>

#endif /* _UNISTD_H */


引用通告地址: 点击获取引用地址
评论: 5 | 引用: 0 | 阅读: 5087
Gucci sale [ 2011-08-10 13:50 网址 | 回复 | 编辑 删除 ]
louis vuitton belts on sale general, after receiving the alarm drowning, the cheap louis vuitton hats police will carry out a louis vuitton hat simple salvage, salvage once to no avail, they will notify the louis vuitton belts salvage team to the scene. Dongyang, a louis vuitton outlet poli...
moncler jackets [ 2011-10-10 10:49 网址 | 回复 | 编辑 删除 ]
These cheap moncler jackets are the single most elegant of all the fashion business. You can choose different styles and models, and can do in the color of your choice.
  • 1 
发表评论
昵 称: 密 码:
网 址: 邮 箱:
选 项:    
头 像:
内 容: