summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/filesystem.c7
-rw-r--r--wscript8
2 files changed, 1 insertions, 14 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
diff --git a/wscript b/wscript
index 29c19b0..6cbfa5e 100644
--- a/wscript
+++ b/wscript
@@ -234,14 +234,6 @@ def configure(conf):
lib = 'dl',
mandatory = False)
- if conf.env.DEST_OS == 'win32':
- conf.check_function('c', 'CreateSymbolicLink',
- header_name = ['windows.h'],
- define_name = 'HAVE_CREATESYMBOLICLINK',
- return_type = 'BOOLEAN',
- arg_types = 'LPCSTR, LPCSTR, DWORD',
- mandatory = False)
-
if Options.options.dyn_manifest:
conf.define('LILV_DYN_MANIFEST', 1)