summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-07-12 00:40:36 +0200
committerDavid Robillard <d@drobilla.net>2018-09-15 18:52:30 +0200
commit28a78b7c8b06664a5ec8947987589c245c2c79d8 (patch)
tree5bdaef17c0e38306ef041b76f47b1d91060c6636 /src
parente2ff8b4e2fde519493bbc2cd315a27aede87f0d9 (diff)
downloadlilv-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index cc57225..e057809 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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);