From 13dc6658b30b3e2641471f9b72c07746c7b09e77 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 5 Jul 2022 21:04:50 -0400 Subject: Fix clang-format whitespace --- src/filesystem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) { -- cgit v1.2.1