summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 98e89d8..cc57225 100644
--- a/src/util.c
+++ b/src/util.c
@@ -39,7 +39,7 @@
# include <io.h>
# define F_OK 0
# define mkdir(path, flags) _mkdir(path)
-# if defined(_MSC_VER) && _MSC_VER <= 1400
+# if (defined(_MSC_VER) && _MSC_VER <= 1400) || defined(__MINGW64__) || defined(__MINGW32__)
/** Implement 'CreateSymbolicLink()' for MSVC 8 or earlier */
extern "C" BOOLEAN WINAPI
CreateSymbolicLink(LPCTSTR linkpath, LPCTSTR targetpath, DWORD flags)