diff options
author | Kim Alvefur <zash@zash.se> | 2019-04-29 15:53:52 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-04-29 15:53:52 +0200 |
commit | e60915744d6dcb90bbe500aee78d3820b7f89b82 (patch) | |
tree | 940982f4bfbc0f4819669f94b8b06c79b4125c3d /util-src | |
parent | 5252a355d02d298f4ab6449abdbdbd761f51bc88 (diff) | |
download | prosody-e60915744d6dcb90bbe500aee78d3820b7f89b82.tar.gz prosody-e60915744d6dcb90bbe500aee78d3820b7f89b82.zip |
util.encodings: Add compat with ICU before version 58
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/encodings.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c index 0d723913..3b7f322d 100644 --- a/util-src/encodings.c +++ b/util-src/encodings.c @@ -324,6 +324,11 @@ UStringPrepProfile *icu_resourceprep; 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; |