Skip to content

Commit b606b73

Browse files
committed
Fix building 8.6 with icu 67 and older [skip ci]
1 parent dcdc97e commit b606b73

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From ae83c0e612d1911c29352bf2449c322aeae522ac Mon Sep 17 00:00:00 2001
2+
From: Shivam Mathur <shivam_jpr@hotmail.com>
3+
Date: Sat, 27 Sep 2025 09:31:20 +0530
4+
Subject: [PATCH] intl: make IntlNumberRangeFormatter build on ICU 63–67
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
8+
9+
---
10+
ext/intl/rangeformatter/rangeformatter_class.cpp | 2 ++
11+
1 file changed, 2 insertions(+)
12+
13+
diff --git a/ext/intl/rangeformatter/rangeformatter_class.cpp b/ext/intl/rangeformatter/rangeformatter_class.cpp
14+
index a19bbb451d8..5ffdf938aad 100644
15+
--- a/ext/intl/rangeformatter/rangeformatter_class.cpp
16+
+++ b/ext/intl/rangeformatter/rangeformatter_class.cpp
17+
@@ -20,7 +20,9 @@ extern "C" {
18+
19+
#if U_ICU_VERSION_MAJOR_NUM >= 63
20+
#include <unicode/numberrangeformatter.h>
21+
+#if U_ICU_VERSION_MAJOR_NUM >= 68
22+
#include <unicode/unumberrangeformatter.h>
23+
+#endif
24+
#include <unicode/numberformatter.h>
25+
#include <unicode/unistr.h>
26+
#include "../intl_convertcpp.h"
27+
--
28+
2.51.0
29+

config/patches/8.6/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@
3939
0039-Disable-avx-detection-with-gcc-6.patch
4040
0040-Disable-garbage-collection-routine.patch
4141
0041-Add-missing-header-includes.patch
42+
0042-intl-make-IntlNumberRangeFormatter-build-on-ICU-63-6.patch

0 commit comments

Comments
 (0)