summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-18 16:49:13 +0100
committerDavid Robillard <d@drobilla.net>2020-12-18 17:38:50 +0100
commit6f5f98345135d7bc6dd4f8a71d720b9480de6551 (patch)
tree302089c3c609c57afacedb1e9b60d59158a42054 /src
parent3b11ed198e2b6d26977edc3f0857062f0295b42b (diff)
downloadlilv-6f5f98345135d7bc6dd4f8a71d720b9480de6551.tar.gz
lilv-6f5f98345135d7bc6dd4f8a71d720b9480de6551.tar.bz2
lilv-6f5f98345135d7bc6dd4f8a71d720b9480de6551.zip
Windows: Don't bother trying to create symbolic links
This only works on modern systems with "Developer Mode" enabled, so everything needs to work without them in reality anyway.
Diffstat (limited to 'src')
-rw-r--r--src/filesystem.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/filesystem.c b/src/filesystem.c
index 3044e8e..abf40e9 100644
--- a/src/filesystem.c
+++ b/src/filesystem.c
@@ -326,12 +326,7 @@ lilv_symlink(const char* oldpath, const char* newpath)
int ret = 0;
if (strcmp(oldpath, newpath)) {
#ifdef _WIN32
-#ifdef HAVE_CREATESYMBOLICLINK
- ret = !CreateSymbolicLink(newpath, oldpath, 0);
-#endif
- if (ret) {
- ret = !CreateHardLink(newpath, oldpath, 0);
- }
+ ret = !CreateHardLink(newpath, oldpath, 0);
#else
ret = symlink(oldpath, newpath);
#endif