diff options
Diffstat (limited to '')
-rw-r--r-- | src/fs/Traits.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx index 51941cb70..df412b12b 100644 --- a/src/fs/Traits.hxx +++ b/src/fs/Traits.hxx @@ -29,6 +29,7 @@ #include <string> +#include <string.h> #include <assert.h> /** @@ -79,6 +80,11 @@ struct PathTraits { return IsSeparatorUTF8(*p); } + gcc_pure + static size_t GetLengthFS(const_pointer p) { + return strlen(p); + } + /** * Determine the "base" file name of the given UTF-8 path. * The return value points inside the given string. |