summaryrefslogtreecommitdiff
path: root/deps/icu-small/source/common/unicode/umachine.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/icu-small/source/common/unicode/umachine.h')
-rw-r--r--deps/icu-small/source/common/unicode/umachine.h23
1 files changed, 6 insertions, 17 deletions
diff --git a/deps/icu-small/source/common/unicode/umachine.h b/deps/icu-small/source/common/unicode/umachine.h
index a9dc1631b0..6d932cfcfb 100644
--- a/deps/icu-small/source/common/unicode/umachine.h
+++ b/deps/icu-small/source/common/unicode/umachine.h
@@ -125,6 +125,9 @@
* May result in an error if it applied to something not an override.
* @internal
*/
+#ifndef U_OVERRIDE
+#define U_OVERRIDE override
+#endif
/**
* \def U_FINAL
@@ -133,24 +136,10 @@
* May result in an error if subclasses attempt to override.
* @internal
*/
-
-#if U_CPLUSPLUS_VERSION >= 11
-/* C++11 */
-#ifndef U_OVERRIDE
-#define U_OVERRIDE override
-#endif
-#ifndef U_FINAL
+#if !defined(U_FINAL) || defined(U_IN_DOXYGEN)
#define U_FINAL final
#endif
-#else
-/* not C++11 - define to nothing */
-#ifndef U_OVERRIDE
-#define U_OVERRIDE
-#endif
-#ifndef U_FINAL
-#define U_FINAL
-#endif
-#endif
+
/*==========================================================================*/
/* limits for int32_t etc., like in POSIX inttypes.h */
@@ -318,7 +307,7 @@ typedef int8_t UBool;
* UChar is configurable by defining the macro UCHAR_TYPE
* on the preprocessor or compiler command line:
* -DUCHAR_TYPE=uint16_t or -DUCHAR_TYPE=wchar_t (if U_SIZEOF_WCHAR_T==2) etc.
- * (The UCHAR_TYPE can also be #defined earlier in this file, for outside the ICU library code.)
+ * (The UCHAR_TYPE can also be \#defined earlier in this file, for outside the ICU library code.)
* This is for transitional use from application code that uses uint16_t or wchar_t for UTF-16.
*
* The default is UChar=char16_t.