diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:12:46 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:12:46 +0200 |
commit | b338e29fd3eaf700f8c8360aa0310048ba941d54 (patch) | |
tree | 122f8ef3790d12cd10275ef7453a9e8053322d78 /shared/zstring.h | |
parent | 3.18 (diff) | |
download | FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.gz FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.bz2 FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.zip |
3.19
Diffstat (limited to 'shared/zstring.h')
-rw-r--r-- | shared/zstring.h | 3 |
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 |