COMP: Need windows.h even on cygwin to get CreateFile API.
This commit is contained in:
parent
c7a61b9802
commit
c1f64baa4a
@ -58,6 +58,11 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Windows API. Some parts used even on cygwin.
|
||||||
|
#if defined(_WIN32)
|
||||||
|
# include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// This is a hack to prevent warnings about these functions being
|
// This is a hack to prevent warnings about these functions being
|
||||||
// declared but not referenced.
|
// declared but not referenced.
|
||||||
#if defined(__sgi) && !defined(__GNUC__)
|
#if defined(__sgi) && !defined(__GNUC__)
|
||||||
@ -82,7 +87,6 @@ public:
|
|||||||
|
|
||||||
#if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__))
|
#if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__))
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <windows.h>
|
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#define _unlink unlink
|
#define _unlink unlink
|
||||||
inline int Mkdir(const char* dir)
|
inline int Mkdir(const char* dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user