From: Daniel Stenberg Date: Sun, 26 Jan 2025 13:14:44 +0000 (+0100) Subject: version: fix the IDN feature for winidn and appleidn X-Git-Tag: curl-8_12_0~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a49cad39eb1c3622e03fce492bda3800267d233;p=thirdparty%2Fcurl.git version: fix the IDN feature for winidn and appleidn Closes #16091 --- diff --git a/lib/version.c b/lib/version.c index f32969ebe5..166fabd79c 100644 --- a/lib/version.c +++ b/lib/version.c @@ -416,10 +416,15 @@ static const char * const supported_protocols[] = { * curl_global_init() and curl_global_cleanup() calls. */ -#if defined(USE_LIBIDN2) +#if defined(USE_LIBIDN2) || defined(USE_WIN32_IDN) || defined(USE_APPLE_IDN) static int idn_present(curl_version_info_data *info) { +#if defined(USE_WIN32_IDN) || defined(USE_APPLE_IDN) + (void)info; + return TRUE; +#else return info->libidn != NULL; +#endif } #else #define idn_present NULL