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.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx
index 1a2cd8226..b557dd752 100644
--- a/src/fs/Traits.hxx
+++ b/src/fs/Traits.hxx
@@ -32,6 +32,8 @@
#include <assert.h>
+#define PATH_LITERAL(s) (s)
+
/**
* This class describes the nature of a native filesystem path.
*/
@@ -48,7 +50,7 @@ struct PathTraitsFS {
static constexpr value_type SEPARATOR = '/';
#endif
- static constexpr const_pointer CURRENT_DIRECTORY = ".";
+ static constexpr const_pointer CURRENT_DIRECTORY = PATH_LITERAL(".");
static constexpr bool IsSeparator(value_type ch) {
return