Need to include `io.h` anyway for _WIN32/64; ref #3938

parent cafe6ce4
...@@ -6,8 +6,11 @@ ...@@ -6,8 +6,11 @@
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
#include <io.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#include <io.h>
#define close _close #define close _close
#define unlink _unlink #define unlink _unlink
...@@ -23,10 +26,6 @@ mkstemp(char *p) ...@@ -23,10 +26,6 @@ mkstemp(char *p)
return fd; return fd;
return -1; return -1;
} }
#else
#include <io.h>
#endif #endif
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment