Skip to content

Commit 117dfd4

Browse files
authored
Merge pull request #2793 from apple/icu-before-62
Work around ICU version < 62
2 parents e603f55 + 4e54137 commit 117dfd4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CoreFoundation/String.subproj/CFString.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "CFRuntime_Internal.h"
2929
#include <assert.h>
3030
#include <unicode/uchar.h>
31+
#include <unicode/uversion.h>
3132
#if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX
3233
#include "CFLocaleInternal.h"
3334
#include "CFStringLocalizedFormattingInternal.h"
@@ -46,7 +47,10 @@
4647
#endif
4748

4849

49-
50+
// Build with older versions of ICU
51+
#if U_ICU_VERSION_MAJOR_NUM < 62
52+
# define UCHAR_EXTENDED_PICTOGRAPHIC 64
53+
#endif
5054

5155
#define USE_STRING_ROM 0
5256

0 commit comments

Comments
 (0)