mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-28 23:02:31 +00:00
_POSIX_ is undefined temporary when io.h is included. Ugly, but it works
This commit is contained in:
parent
1fda6e16c1
commit
e1e329733c
1 changed files with 9 additions and 1 deletions
|
@ -29,7 +29,15 @@
|
|||
/* All the headers include this file. */
|
||||
//#include <_mingw.h>
|
||||
|
||||
#include <io.h>
|
||||
// ugly hack for MSVC
|
||||
#if defined(_POSIX_)
|
||||
#undef _POSIX_
|
||||
#include <io.h>
|
||||
#define _POSIX_
|
||||
#else
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef RC_INVOKED
|
||||
|
||||
|
|
Loading…
Reference in a new issue