util.encodings: Add compat with ICU before version 58
authorKim Alvefur <zash@zash.se>
Mon, 29 Apr 2019 15:53:52 +0200
changeset 9983 b06f6ff878ee
parent 9982 53e785b1f4f6
child 9984 73a447249fe4
util.encodings: Add compat with ICU before version 58
util-src/encodings.c
--- 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;