From 16caee67a4db74e41f0b4e9276f54561f43e45ce Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Jul 2018 21:28:20 +0200 Subject: Fix Mingw build --- src/util.c | 4 ++-- wscript | 2 +- 2 files changed, 3 insertions(+), 3 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 # 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); diff --git a/wscript b/wscript index cb6a278..3674787 100644 --- a/wscript +++ b/wscript @@ -429,7 +429,7 @@ def build(bld): # lv2bench (less portable than other utilities) if bld.is_defined('HAVE_CLOCK_GETTIME') and not bld.env.STATIC_PROGS: obj = build_util(bld, 'utils/lv2bench', defines) - if not bld.env.MSVC_COMPILER and not bld.env.DEST_OS == 'darwin': + if bld.env.DEST_OS != 'win32' and bld.env.DEST_OS != 'darwin': obj.lib = ['rt'] # Documentation -- cgit v1.2.1