mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
IDN: Fix compile time detection of linidn2 TR46
Follow-up to f30cbcac1
Closes #1207
This commit is contained in:
parent
2ac1942c72
commit
ba315745f7
@ -4010,7 +4010,7 @@ static void fix_hostname(struct connectdata *conn, struct hostname *host)
|
|||||||
#ifdef USE_LIBIDN2
|
#ifdef USE_LIBIDN2
|
||||||
if(idn2_check_version(IDN2_VERSION)) {
|
if(idn2_check_version(IDN2_VERSION)) {
|
||||||
char *ace_hostname = NULL;
|
char *ace_hostname = NULL;
|
||||||
#ifdef IDN2_TRANSITIONAL
|
#if IDN2_VERSION_NUMBER >= 0x00140000
|
||||||
int flags = IDN2_NFC_INPUT | IDN2_TRANSITIONAL;
|
int flags = IDN2_NFC_INPUT | IDN2_TRANSITIONAL;
|
||||||
#else
|
#else
|
||||||
int flags = IDN2_NFC_INPUT;
|
int flags = IDN2_NFC_INPUT;
|
||||||
|
Loading…
Reference in New Issue
Block a user