summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IceUtil/Config.h')
-rw-r--r--cpp/include/IceUtil/Config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/Config.h b/cpp/include/IceUtil/Config.h
index 7f1f7f2cde9..33793f3e543 100644
--- a/cpp/include/IceUtil/Config.h
+++ b/cpp/include/IceUtil/Config.h
@@ -76,6 +76,17 @@
# define ICE_NOEXCEPT_FALSE /**/
#endif
+
+//
+// Does the C++ compiler library provide std::codecvt_utf8 and
+// std::codecvt_utf8_utf16?
+//
+#if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || \
+ defined(__clang__) || \
+ (defined(ICE_CPP11_COMPILER) && defined(__GNUC__) && (__GNUC__ >= 5))
+#define ICE_HAS_CODECVT_UTF8
+#endif
+
//
// Visual Studio 2015 or later
//
@@ -263,6 +274,9 @@ private:
const noncopyable& operator=(const noncopyable&);
};
+
+typedef unsigned char Byte;
+
//
// Int64 typedef and ICE_INT64 macro for Int64 literal values
//