summaryrefslogtreecommitdiff
path: root/shared/zstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/zstring.h')
-rw-r--r--shared/zstring.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/zstring.h b/shared/zstring.h
index 66f961fa..841fb8a2 100644
--- a/shared/zstring.h
+++ b/shared/zstring.h
@@ -110,10 +110,12 @@ void MakeUpper(Zbase<wchar_t, SP, AP>& str);
#ifdef FFS_WIN //Windows stores filenames in wide character format
typedef wchar_t Zchar;
#define Zstr(x) L ## x
+const Zchar FILE_NAME_SEPARATOR = L'\\';
#elif defined FFS_LINUX //Linux uses UTF-8
typedef char Zchar;
#define Zstr(x) x
+const Zchar FILE_NAME_SEPARATOR = '/';
#else
#error define platform you are in: FFS_WIN or FFS_LINUX
@@ -146,6 +148,7 @@ typedef Zbase<Zchar, StorageRefCount, AllocatorFreeStoreChecked> Zstring; //for
+
//################################# inline implementation ########################################
#if defined(FFS_WIN) || defined(FFS_LINUX)
namespace z_impl
bgstack15