_POSIX_ is undefined temporary when io.h is included. Ugly, but it works

This commit is contained in:
Anton E. Gavrilov 2000-05-21 22:59:40 +00:00
parent 1fda6e16c1
commit e1e329733c

View file

@ -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