system: add PATH_SEPARATOR

I am aware of the std::filesystem::path::preferred_separator, but we
are targeting C++14 and we need this as a precompiler macro to allow
concatenation of the path strings in precompile stage.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-09-13 11:29:20 +02:00
parent bd14f7c629
commit 657eac0c69

View File

@ -31,6 +31,14 @@
#endif #endif
#endif #endif
#if defined(_WIN32)
#define PATH_SEPARATOR '\\'
#define PATH_SEPARATOR_STR "\\"
#else
#define PATH_SEPARATOR '/'
#define PATH_SEPARATOR_STR "/"
#endif
namespace stdex namespace stdex
{ {
/// ///