[util] Define platform path_string type

This commit is contained in:
Joshua Ashton 2022-08-20 23:52:30 +00:00 committed by Philip Rebohle
parent eda3ba6372
commit 9509ec1144
1 changed files with 4 additions and 2 deletions

View File

@ -178,9 +178,11 @@ namespace dxvk::str {
std::wstring tows(const char* mbs);
#ifdef _WIN32
inline std::wstring topath(const char* mbs) { return tows(mbs); }
using path_string = std::wstring;
inline path_string topath(const char* mbs) { return tows(mbs); }
#else
inline std::string topath(const char* mbs) { return std::string(mbs); }
using path_string = std::string;
inline path_string topath(const char* mbs) { return std::string(mbs); }
#endif
inline void format1(std::stringstream&) { }