diff options
author | David Robillard <d@drobilla.net> | 2018-07-11 21:28:20 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-07-12 08:23:37 +0200 |
commit | 16caee67a4db74e41f0b4e9276f54561f43e45ce (patch) | |
tree | ec1b22255806e3a0b0fd0e71c29de7ebc749f9d5 | |
parent | 62c641dc6e8c8924cdd992af9657172eb301ccf7 (diff) | |
download | lilv-16caee67a4db74e41f0b4e9276f54561f43e45ce.tar.gz lilv-16caee67a4db74e41f0b4e9276f54561f43e45ce.tar.bz2 lilv-16caee67a4db74e41f0b4e9276f54561f43e45ce.zip |
Fix Mingw build
-rw-r--r-- | src/util.c | 4 | ||||
-rw-r--r-- | wscript | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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); @@ -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 |