aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Traits.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/Traits.hxx')
-rw-r--r--src/fs/Traits.hxx6
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.