diff options
author | Marius Zwicker <marius@mlba-team.de> | 2022-02-27 19:56:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 19:56:44 +0100 |
commit | 774d1e942c515e0fdd5aeb4d6f197987f2dc1ab7 (patch) | |
tree | ab107a0e789a3ec72d5708e3e987382041001ea2 /src/Util.hpp | |
parent | 01c2c6bebae7bc209ec7478c7103a15a7923ba97 (diff) | |
download | ccache-774d1e942c515e0fdd5aeb4d6f197987f2dc1ab7.tar.gz |
fix: Make conversion to relative paths more reliable on Windows (#1011)
Diffstat (limited to 'src/Util.hpp')
-rw-r--r-- | src/Util.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Util.hpp b/src/Util.hpp index 6e0aea83..b92a3d5c 100644 --- a/src/Util.hpp +++ b/src/Util.hpp @@ -46,6 +46,10 @@ enum class UnlinkLog { log_failure, ignore_failure }; // Get base name of path. nonstd::string_view base_name(nonstd::string_view path); +// Determine if `path` is an absolute path with prefix, returning the split +// point +bool is_absolute_path_with_prefix(nonstd::string_view path, size_t& split_pos); + // Get an integer value from bytes in big endian order. // // Parameters: |