diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 00:04:37 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 01:04:36 -0400 |
commit | 6bce9e50915d730caa3bd2b60c513fe9915e4b83 (patch) | |
tree | 84ae681b9747ea809ea686dcd0a3ad889beb0d2f /src/FilePath.cpp | |
parent | 5bec7b8de6378bc6cdac5521493a437725048330 (diff) | |
download | ingen-6bce9e50915d730caa3bd2b60c513fe9915e4b83.tar.gz ingen-6bce9e50915d730caa3bd2b60c513fe9915e4b83.tar.bz2 ingen-6bce9e50915d730caa3bd2b60c513fe9915e4b83.zip |
Switch to meson build system
Diffstat (limited to 'src/FilePath.cpp')
-rw-r--r-- | src/FilePath.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FilePath.cpp b/src/FilePath.cpp index d16c133c..f8da196e 100644 --- a/src/FilePath.cpp +++ b/src/FilePath.cpp @@ -26,7 +26,7 @@ template <typename Char> static bool is_sep(const Char chr) { -#ifdef USE_WINDOWS_FILE_PATHS +#if USE_WINDOWS_FILE_PATHS return chr == L'/' || chr == preferred_separator; #else return chr == '/'; @@ -98,7 +98,7 @@ FilePath::operator+=(boost::basic_string_view<value_type> sv) FilePath FilePath::root_name() { -#ifdef USE_WINDOWS_FILE_PATHS +#if USE_WINDOWS_FILE_PATHS if (_str.length() >= 2 && _str[0] >= 'A' && _str[0] <= 'Z' && _str[1] == ':') { return FilePath(_str.substr(0, 2)); @@ -111,7 +111,7 @@ FilePath::root_name() FilePath FilePath::root_directory() const { -#ifdef USE_WINDOWS_FILE_PATHS +#if USE_WINDOWS_FILE_PATHS const auto name = root_name().string(); return name.empty() ? Path() : Path(name + preferred_separator); #endif @@ -122,7 +122,7 @@ FilePath::root_directory() const FilePath FilePath::root_path() const { -#ifdef USE_WINDOWS_FILE_PATHS +#if USE_WINDOWS_FILE_PATHS const auto name = root_name(); return name.empty() ? FilePath() : name / root_directory(); #endif @@ -180,7 +180,7 @@ FilePath::extension() const bool FilePath::is_absolute() const { -#ifdef USE_WINDOWS_FILE_PATHS +#if USE_WINDOWS_FILE_PATHS return !root_name().empty(); #else return !root_directory().empty(); |