summaryrefslogtreecommitdiff
path: root/ext/intl/breakiterator/codepointiterator_internal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/breakiterator/codepointiterator_internal.cpp')
-rw-r--r--ext/intl/breakiterator/codepointiterator_internal.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/intl/breakiterator/codepointiterator_internal.cpp b/ext/intl/breakiterator/codepointiterator_internal.cpp
index e88f2eaf6b..bf9239d531 100644
--- a/ext/intl/breakiterator/codepointiterator_internal.cpp
+++ b/ext/intl/breakiterator/codepointiterator_internal.cpp
@@ -212,6 +212,10 @@ int32_t CodePointBreakIterator::next(int32_t n)
{
UBool res = utext_moveIndex32(this->fText, n);
+#ifndef UTEXT_CURRENT32
+#define UTEXT_CURRENT32 utext_current32
+#endif
+
if (res) {
this->lastCodePoint = UTEXT_CURRENT32(this->fText);
return (int32_t)UTEXT_GETNATIVEINDEX(this->fText);