summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-05 21:04:50 -0400
committerDavid Robillard <d@drobilla.net>2022-07-14 11:59:36 -0400
commit13dc6658b30b3e2641471f9b72c07746c7b09e77 (patch)
treee537512ab9bb465977c13620d21f30ad62294af4 /src
parent65099126804a1f872a079abe928d3afd2d6d6afe (diff)
downloadlilv-13dc6658b30b3e2641471f9b72c07746c7b09e77.tar.gz
lilv-13dc6658b30b3e2641471f9b72c07746c7b09e77.tar.bz2
lilv-13dc6658b30b3e2641471f9b72c07746c7b09e77.zip
Fix clang-format whitespace
Diffstat (limited to 'src')
-rw-r--r--src/filesystem.c6
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) {