diff options
-rw-r--r-- | src/filesystem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filesystem.c b/src/filesystem.c index 308c690..307bda6 100644 --- a/src/filesystem.c +++ b/src/filesystem.c @@ -258,7 +258,9 @@ lilv_path_join(const char* a, const char* b) char* path = (char*)calloc(1, a_len + b_len + 2); memcpy(path, a, pre_len); -#ifdef _WIN32 +#ifndef _WIN32 + path[pre_len] = '/'; +#else // Use forward slash if it seems that the input paths do const bool a_has_slash = strchr(a, '/'); const bool b_has_slash = b && strchr(b, '/'); @@ -267,8 +269,6 @@ lilv_path_join(const char* a, const char* b) } else { path[pre_len] = '\\'; } -#else - path[pre_len] = '/'; #endif if (b) { |