From 35177a5becb4955ad3c48eaabd83bcc0fa60ef94 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 15 Jul 2020 16:24:50 +0200 Subject: Only define Windows path utility function on Windows Avoids a warning about an unused fuction. --- src/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/util.c b/src/util.c index 7930d70..5ba450a 100644 --- a/src/util.c +++ b/src/util.c @@ -347,12 +347,14 @@ lilv_copy_file(const char* src, const char* dst) return st; } +#ifdef _WIN32 static inline bool is_windows_path(const char* path) { return (isalpha(path[0]) && (path[1] == ':' || path[1] == '|') && (path[2] == '/' || path[2] == '\\')); } +#endif bool lilv_path_is_absolute(const char* path) -- cgit v1.2.1