summaryrefslogtreecommitdiff
path: root/lib/idn.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/idn.h')
-rw-r--r--lib/idn.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/idn.h b/lib/idn.h
index 2d04efcdf..c7adf97e6 100644
--- a/lib/idn.h
+++ b/lib/idn.h
@@ -32,7 +32,15 @@ CURLcode Curl_idnconvert_hostname(struct hostname *host);
#if defined(USE_LIBIDN2) || defined(USE_WIN32_IDN)
#define USE_IDN
void Curl_free_idnconverted_hostname(struct hostname *host);
+char *Curl_idn_decode(const char *input);
+#ifdef USE_LIBIDN2
+#define Curl_idn_free(x) idn2_free(x)
+#else
+#define Curl_idn_free(x) free(x)
+#endif
+
#else
#define Curl_free_idnconverted_hostname(x)
+#define Curl_idn_decode(x) NULL
#endif
#endif /* HEADER_CURL_IDN_H */