From ba315745f7f4ddfedd0763833c22f019817535cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Fri, 13 Jan 2017 11:50:01 +0100 Subject: IDN: Fix compile time detection of linidn2 TR46 Follow-up to f30cbcac1 Closes #1207 --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/url.c b/lib/url.c index 1f6e5bed9..9112baee0 100644 --- a/lib/url.c +++ b/lib/url.c @@ -4010,7 +4010,7 @@ static void fix_hostname(struct connectdata *conn, struct hostname *host) #ifdef USE_LIBIDN2 if(idn2_check_version(IDN2_VERSION)) { char *ace_hostname = NULL; -#ifdef IDN2_TRANSITIONAL +#if IDN2_VERSION_NUMBER >= 0x00140000 int flags = IDN2_NFC_INPUT | IDN2_TRANSITIONAL; #else int flags = IDN2_NFC_INPUT; -- cgit v1.2.3