From 2a49cad39eb1c3622e03fce492bda3800267d233 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 26 Jan 2025 14:14:44 +0100 Subject: [PATCH] version: fix the IDN feature for winidn and appleidn Closes #16091 --- lib/version.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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