]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - vendor/utfcpp/utf8/core.h
Normalise paths in the httpd module.
[user/henk/code/inspircd.git] / vendor / utfcpp / utf8 / core.h
index e007ca17d4de1ac50216a37de717f880aa6e81fa..de6199f2a3a75553db08ad9c6dfac7a2f8841e91 100644 (file)
@@ -30,6 +30,23 @@ DEALINGS IN THE SOFTWARE.
 
 #include <iterator>
 
+// Determine the C++ standard version.
+// If the user defines UTF_CPP_CPLUSPLUS, use that.
+// Otherwise, trust the unreliable predefined macro __cplusplus
+
+#if !defined UTF_CPP_CPLUSPLUS
+    #define UTF_CPP_CPLUSPLUS __cplusplus
+#endif
+
+#if UTF_CPP_CPLUSPLUS >= 201103L // C++ 11 or later
+    #define UTF_CPP_OVERRIDE override
+    #define UTF_CPP_NOEXCEPT noexcept
+#else // C++ 98/03
+    #define UTF_CPP_OVERRIDE
+    #define UTF_CPP_NOEXCEPT throw()
+#endif // C++ 11 or later
+
+
 namespace utf8
 {
     // The typedefs for 8-bit, 16-bit and 32-bit unsigned integers