diff options
author | David Robillard <d@drobilla.net> | 2020-07-15 16:24:50 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-16 11:24:59 +0200 |
commit | 35177a5becb4955ad3c48eaabd83bcc0fa60ef94 (patch) | |
tree | c6c3de6fa12fbef80111d3b09acb9e61fcf2b6f6 /src | |
parent | 212b4bedb565b3ccc807917b94ed5b67023603db (diff) | |
download | lilv-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |