Define compatibility only for `_MSC_VER`; ref #3923

Suggested by @mattn.
parent 1ad2dd61
...@@ -6,10 +6,11 @@ ...@@ -6,10 +6,11 @@
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
#ifdef _MSC_VER
#define close _close #define close _close
#define unlink _unlink #define unlink _unlink
#ifdef _MSC_VER
static int static int
mkstemp(char *p) mkstemp(char *p)
{ {
......
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