From e8ce697973ba7c7c8667c48ab6cd8509c77c37e1 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 11 May 2026 10:50:36 +0200 Subject: [PATCH] idn: replace header guards with forward declaration Follow-up to bc40e09f63889a8bc14fa8f7221921eb5b4a559e #21472 Closes #21551 --- lib/idn.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/idn.h b/lib/idn.h index b0ac981ba8..c73b870a70 100644 --- a/lib/idn.h +++ b/lib/idn.h @@ -25,19 +25,16 @@ ***************************************************************************/ struct Curl_str; +struct hostname; bool Curl_is_ASCII_name(const char *hostname); bool Curl_is_ASCII_str(struct Curl_str *s); -#ifdef HEADER_CURL_URLDATA_H /* HACK */ CURLcode Curl_idnconvert_hostname(struct hostname *host); -#endif #if defined(USE_LIBIDN2) || defined(USE_WIN32_IDN) || defined(USE_APPLE_IDN) #define USE_IDN -#ifdef HEADER_CURL_URLDATA_H /* HACK */ void Curl_free_idnconverted_hostname(struct hostname *host); -#endif CURLcode Curl_idn_decode(const char *input, char **output); CURLcode Curl_idn_encode(const char *puny, char **output); #else