summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/string_util.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/string_util.cc b/base/string_util.cc
index 5498652..31f97131b 100644
--- a/base/string_util.cc
+++ b/base/string_util.cc
@@ -70,7 +70,11 @@ struct ToUnsigned<signed char> {
};
template<>
struct ToUnsigned<wchar_t> {
+#if defined(WCHAR_T_IS_UTF16)
typedef unsigned short Unsigned;
+#elif defined(WCHAR_T_IS_UTF32)
+ typedef uint32 Unsigned;
+#endif
};
template<>
struct ToUnsigned<short> {