summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-31 19:09:19 -0400
committerDavid Robillard <d@drobilla.net>2016-07-31 19:09:19 -0400
commit844ae92f089fecae14702517044773adaa32203f (patch)
treea16944102db67bb6edb7e5a2944cb0b0a96872a3 /src
parent93479309fc791000018d657266549358357ff208 (diff)
downloadlilv-844ae92f089fecae14702517044773adaa32203f.tar.gz
lilv-844ae92f089fecae14702517044773adaa32203f.tar.bz2
lilv-844ae92f089fecae14702517044773adaa32203f.zip
Fix Windows compilation
Diffstat (limited to 'src')
-rw-r--r--src/lilv_internal.h2
-rw-r--r--src/util.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lilv_internal.h b/src/lilv_internal.h
index 5abfcd4..af8e31a 100644
--- a/src/lilv_internal.h
+++ b/src/lilv_internal.h
@@ -43,7 +43,7 @@ extern "C" {
#ifndef NAN
# define NAN INFINITY - INFINITY
#endif
-static inline char* dlerror(void) { return "Unknown error"; }
+static inline const char* dlerror(void) { return "Unknown error"; }
#else
# include <dlfcn.h>
# include <unistd.h>
diff --git a/src/util.c b/src/util.c
index 6cc7cc5..d8f0bbd 100644
--- a/src/util.c
+++ b/src/util.c
@@ -29,7 +29,9 @@
#include <string.h>
#ifdef _WIN32
+#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0600 /* for CreateSymbolicLink */
+#endif
# include <windows.h>
# include <direct.h>
# include <io.h>