diff --git a/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h b/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h index a2a5c0a..810f34b 100644 --- a/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h +++ b/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h @@ -27,6 +27,7 @@ #include #include #include +#include namespace WTF { namespace Unicode { diff --git a/WebCore/platform/text/TextBreakIterator.h b/WebCore/platform/text/TextBreakIterator.h index 17cf5f0..7ead196 100644 --- a/WebCore/platform/text/TextBreakIterator.h +++ b/WebCore/platform/text/TextBreakIterator.h @@ -26,7 +26,12 @@ namespace WebCore { +#if (U_ICU_VERSION_MAJOR_NUM == 4) && (U_ICU_VERSION_MINOR_NUM >= 4) + typedef struct UBreakIterator TextBreakIterator; +#else class TextBreakIterator; +#endif + // Note: The returned iterator is good only until you get another iterator.