Changeset

9979:b06f6ff878ee

util.encodings: Add compat with ICU before version 58
author Kim Alvefur <zash@zash.se>
date Mon, 29 Apr 2019 15:53:52 +0200 (2019-04-29)
parents 9978:53e785b1f4f6
children 9980:73a447249fe4
files util-src/encodings.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/encodings.c	Mon Apr 29 03:07:35 2019 +0200
+++ b/util-src/encodings.c	Mon Apr 29 15:53:52 2019 +0200
@@ -324,6 +324,11 @@
 UStringPrepProfile *icu_saslprep;
 USpoofChecker *icu_spoofcheck;
 
+#if (U_ICU_VERSION_MAJOR_NUM < 58)
+/* COMPAT */
+#define USPOOF_CONFUSABLE (USPOOF_SINGLE_SCRIPT_CONFUSABLE | USPOOF_MIXED_SCRIPT_CONFUSABLE | USPOOF_WHOLE_SCRIPT_CONFUSABLE)
+#endif
+
 /* initialize global ICU stringprep profiles */
 void init_icu() {
 	UErrorCode err = U_ZERO_ERROR;