From a4cb621bf55ef2101e22b1e7da5c458a1e0cc2ab Mon Sep 17 00:00:00 2001 From: AlexPeshkoff Date: Sat, 10 Feb 2018 19:43:26 +0300 Subject: [PATCH] Make it build with icu60 --- src/common/common.h | 3 +++ src/common/unicode_util.h | 4 ++++ src/intl/cs_icu.cpp | 1 - src/intl/cv_icu.cpp | 1 - 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/common/common.h b/src/common/common.h index 2cf877a804..58abaaf695 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -997,4 +997,7 @@ namespace Firebird { static IMessageMetadata* const DELAYED_OUT_FORMAT = reinterpret_cast(1); } +#undef UCHAR_TYPE +#define UCHAR_TYPE uint16_t + #endif /* COMMON_COMMON_H */ diff --git a/src/common/unicode_util.h b/src/common/unicode_util.h index 001d3d8283..03d48f9419 100644 --- a/src/common/unicode_util.h +++ b/src/common/unicode_util.h @@ -31,6 +31,10 @@ #include "../common/IntlUtil.h" #include "../common/os/mod_loader.h" #include "../common/classes/fb_string.h" + +#undef U_SHOW_CPLUSPLUS_API +#define U_SHOW_CPLUSPLUS_API 0 + #include struct UCollator; diff --git a/src/intl/cs_icu.cpp b/src/intl/cs_icu.cpp index 76f15a2e68..bc3b48b44f 100644 --- a/src/intl/cs_icu.cpp +++ b/src/intl/cs_icu.cpp @@ -28,7 +28,6 @@ #include "../intl/ldcommon.h" #include "cs_icu.h" #include "cv_icu.h" -#include #include "../common/unicode_util.h" diff --git a/src/intl/cv_icu.cpp b/src/intl/cv_icu.cpp index b1ac01fce5..82262d9b4d 100644 --- a/src/intl/cv_icu.cpp +++ b/src/intl/cv_icu.cpp @@ -28,7 +28,6 @@ #include "../intl/ldcommon.h" #include "ld_proto.h" #include "cv_icu.h" -#include #include "../common/unicode_util.h"