]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
version: fix the IDN feature for winidn and appleidn
authorDaniel Stenberg <daniel@haxx.se>
Sun, 26 Jan 2025 13:14:44 +0000 (14:14 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Jan 2025 07:13:38 +0000 (08:13 +0100)
Closes #16091

lib/version.c

index f32969ebe55bc4cd9dd4644b99cd1de5329287c5..166fabd79c31a8ee9213a0b269bc6fc71c92ba8a 100644 (file)
@@ -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