]> granicus.if.org Git - curl/commitdiff
IDN: Fix compile time detection of linidn2 TR46
authorTim Rühsen <tim.ruehsen@gmx.de>
Fri, 13 Jan 2017 10:50:01 +0000 (11:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 13 Jan 2017 12:38:12 +0000 (13:38 +0100)
Follow-up to f30cbcac1

Closes #1207

lib/url.c

index 1f6e5bed945feadc87f3f5faadf39b1c58e42a66..9112baee05a879e35e8172054d3bcabb6e4f06d2 100644 (file)
--- 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;