summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-07-11 21:28:20 +0200
committerDavid Robillard <d@drobilla.net>2018-07-12 08:23:37 +0200
commit16caee67a4db74e41f0b4e9276f54561f43e45ce (patch)
treeec1b22255806e3a0b0fd0e71c29de7ebc749f9d5 /src
parent62c641dc6e8c8924cdd992af9657172eb301ccf7 (diff)
downloadlilv-16caee67a4db74e41f0b4e9276f54561f43e45ce.tar.gz
lilv-16caee67a4db74e41f0b4e9276f54561f43e45ce.tar.bz2
lilv-16caee67a4db74e41f0b4e9276f54561f43e45ce.zip
Fix Mingw build
Diffstat (limited to 'src')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 4973181..c37de42 100644
--- a/src/util.c
+++ b/src/util.c
@@ -39,9 +39,9 @@
# 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
+BOOLEAN WINAPI
CreateSymbolicLink(LPCTSTR linkpath, LPCTSTR targetpath, DWORD flags)
{
typedef BOOLEAN (WINAPI* PFUNC)(LPCTSTR, LPCTSTR, DWORD);