aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Traits.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-02-25 16:01:46 +0100
committerMax Kellermann <max@duempel.org>2015-03-05 10:15:10 +0100
commit65ff72cdf8d3fc8664893b55ca47fca284f34d87 (patch)
tree766eca97378aa4567d7e55aba24c4a785f956f9d /src/fs/Traits.hxx
parent1da09563310a666095e93d3b4fdc5556a8a7c534 (diff)
downloadmpd-65ff72cdf8d3fc8664893b55ca47fca284f34d87.tar.gz
mpd-65ff72cdf8d3fc8664893b55ca47fca284f34d87.tar.xz
mpd-65ff72cdf8d3fc8664893b55ca47fca284f34d87.zip
fs/Traits: enable _UNICODE on Windows
Use wchar_t for everything on Windows. Solves a lot of filesystem charset problems.
Diffstat (limited to '')
-rw-r--r--src/fs/Traits.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx
index cdd9b531d..b92330f60 100644
--- a/src/fs/Traits.hxx
+++ b/src/fs/Traits.hxx
@@ -43,7 +43,11 @@
* This class describes the nature of a native filesystem path.
*/
struct PathTraitsFS {
+#ifdef WIN32
+ typedef std::wstring string;
+#else
typedef std::string string;
+#endif
typedef string::traits_type char_traits;
typedef char_traits::char_type value_type;
typedef value_type *pointer;