diff options
author | David Robillard <d@drobilla.net> | 2022-07-05 21:04:50 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-14 11:59:36 -0400 |
commit | 13dc6658b30b3e2641471f9b72c07746c7b09e77 (patch) | |
tree | e537512ab9bb465977c13620d21f30ad62294af4 /src | |
parent | 65099126804a1f872a079abe928d3afd2d6d6afe (diff) | |
download | lilv-13dc6658b30b3e2641471f9b72c07746c7b09e77.tar.gz lilv-13dc6658b30b3e2641471f9b72c07746c7b09e77.tar.bz2 lilv-13dc6658b30b3e2641471f9b72c07746c7b09e77.zip |
Fix clang-format whitespace
Diffstat (limited to 'src')
-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) { |