diff options
author | Robin Gareus <robin@gareus.org> | 2018-07-12 00:40:36 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-15 18:14:25 +0200 |
commit | 3b041e1af64d8673bb1046d3c701459299172873 (patch) | |
tree | 5bdaef17c0e38306ef041b76f47b1d91060c6636 | |
parent | 0230eaff8d2b4d72b5b805084353dc24ab494218 (diff) | |
download | lilv-fix-windows.tar.gz lilv-fix-windows.tar.bz2 lilv-fix-windows.zip |
Fix building as C for Windowsfix-windows
-rw-r--r-- | src/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -41,7 +41,10 @@ # define mkdir(path, flags) _mkdir(path) # if (defined(_MSC_VER) && _MSC_VER <= 1400) || defined(__MINGW64__) || defined(__MINGW32__) /** Implement 'CreateSymbolicLink()' for MSVC 8 or earlier */ -extern "C" BOOLEAN WINAPI +#ifdef __cplusplus +extern "C" +#endif +BOOLEAN WINAPI CreateSymbolicLink(LPCTSTR linkpath, LPCTSTR targetpath, DWORD flags) { typedef BOOLEAN (WINAPI* PFUNC)(LPCTSTR, LPCTSTR, DWORD); |