idn: replace header guards with forward declaration

Follow-up to bc40e09f63 #21472

Closes #21551
This commit is contained in:
Viktor Szakats 2026-05-11 10:50:36 +02:00
parent e0e56e9ae4
commit e8ce697973
No known key found for this signature in database

View file

@ -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