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:52:30 +0200 |
commit | 28a78b7c8b06664a5ec8947987589c245c2c79d8 (patch) | |
tree | 5bdaef17c0e38306ef041b76f47b1d91060c6636 /src | |
parent | e2ff8b4e2fde519493bbc2cd315a27aede87f0d9 (diff) | |
download | lilv-28a78b7c8b06664a5ec8947987589c245c2c79d8.tar.gz lilv-28a78b7c8b06664a5ec8947987589c245c2c79d8.tar.bz2 lilv-28a78b7c8b06664a5ec8947987589c245c2c79d8.zip |
Fix building as C for Windows
Diffstat (limited to 'src')
-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); |