Diff

util-src/encodings.c @ 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
parent 9976:0e2f663d0714
child 10006:5a5fd234dec7
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;