From 8a1ece4a3b10d035af91e71adef4384ced0e3fca Mon Sep 17 00:00:00 2001 From: couriersud Date: Sat, 6 Jun 2020 20:41:53 +0200 Subject: netlist: Reduce macro usage and make use of pstring utf8. (nw) --- src/lib/netlist/plib/putil.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/lib/netlist/plib/putil.cpp') diff --git a/src/lib/netlist/plib/putil.cpp b/src/lib/netlist/plib/putil.cpp index 44e8141f10a..9cc6e5ec9ae 100644 --- a/src/lib/netlist/plib/putil.cpp +++ b/src/lib/netlist/plib/putil.cpp @@ -15,13 +15,8 @@ namespace plib { namespace util { - #ifdef _WIN32 - static constexpr const char PATH_SEP = '\\'; - static constexpr const char *PATH_SEPS = "\\/"; - #else - static constexpr const char PATH_SEP = '/'; - static constexpr const char *PATH_SEPS = "/"; - #endif + static constexpr const char PATH_SEP = compile_info::win32::value ? '\\' : '/'; + static constexpr const char *PATH_SEPS = compile_info::win32::value ? "\\/" :"/"; pstring basename(const pstring &filename, const pstring &suffix) { -- cgit v1.2.3-70-g09d2