]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
idn: replace header guards with forward declaration
authorViktor Szakats <commit@vsz.me>
Mon, 11 May 2026 08:50:36 +0000 (10:50 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 11 May 2026 15:01:34 +0000 (17:01 +0200)
Follow-up to bc40e09f63889a8bc14fa8f7221921eb5b4a559e #21472

Closes #21551

lib/idn.h

index b0ac981ba893dc8ce0bb86eacc941eefa6fab0cd..c73b870a7080decc9cb7cd791c8518de17790772 100644 (file)
--- a/lib/idn.h
+++ b/lib/idn.h
  ***************************************************************************/
 
 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