diff --git a/common/path.h b/common/path.h index afbceb4f9f3..151086a0a6c 100644 --- a/common/path.h +++ b/common/path.h @@ -188,6 +188,16 @@ public: */ static const char kNoSeparator = '\x00'; + /** + * The platform native separator. + * This is used when accessing files on disk + */ +#if defined(WIN32) + static const char kNativeSeparator = '\\'; +#else + static const char kNativeSeparator = '/'; +#endif + /** * Hash and comparator for Path with following changes: * * case-insensitive