mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-27 11:54:24 +08:00
Correct unistd.h to be includable with strict ansi, too.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1126 4407c894-4637-0410-b4f5-ada5f102cad1
This commit is contained in:
parent
22002263fe
commit
988dd29efa
@ -3,13 +3,9 @@
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
/*
|
||||
* This file is part of the Mingw32 package.
|
||||
*
|
||||
* unistd.h maps (roughly) to io.h
|
||||
*/
|
||||
|
||||
#ifndef __STRICT_ANSI__
|
||||
#ifndef _UNISTD_H
|
||||
#define _UNISTD_H
|
||||
#define __UNISTD_H_SOURCED__ 1
|
||||
|
||||
#include <io.h>
|
||||
#include <process.h>
|
||||
@ -55,4 +51,6 @@ int __cdecl __MINGW_NOTHROW usleep(useconds_t useconds);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#undef __UNISTD_H_SOURCED__
|
||||
#endif /* _UNISTD_H */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user