summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-15 16:24:50 +0200
committerDavid Robillard <d@drobilla.net>2020-07-16 11:24:59 +0200
commit35177a5becb4955ad3c48eaabd83bcc0fa60ef94 (patch)
treec6c3de6fa12fbef80111d3b09acb9e61fcf2b6f6 /src
parent212b4bedb565b3ccc807917b94ed5b67023603db (diff)
downloadlilv-35177a5becb4955ad3c48eaabd83bcc0fa60ef94.tar.gz
lilv-35177a5becb4955ad3c48eaabd83bcc0fa60ef94.tar.bz2
lilv-35177a5becb4955ad3c48eaabd83bcc0fa60ef94.zip
Only define Windows path utility function on Windows
Avoids a warning about an unused fuction.
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 2 insertions, 0 deletions
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)