summaryrefslogtreecommitdiff
path: root/src/iri.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/iri.h')
-rw-r--r--src/iri.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/iri.h b/src/iri.h
index c350cbf..ba64a27 100644
--- a/src/iri.h
+++ b/src/iri.h
@@ -40,11 +40,10 @@ struct iri {
#ifdef ENABLE_IRI
-# include <idna.h>
-# include <idn-free.h>
+# include <idn2.h>
char *parse_charset (const char *str);
-char *find_locale (void);
+const char *find_locale (void);
bool check_encoding_name (const char *encoding);
const char *locale_to_utf8 (const char *str);
char *idn_encode (const struct iri *i, const char *host);
@@ -66,7 +65,7 @@ extern struct iri dummy_iri;
#define locale_to_utf8(str) (str)
#define idn_encode(a,b) NULL
#define idn_decode(str) NULL
-#define idn_free(str) ((void)0)
+#define idn2_free(str) ((void)0)
#define remote_to_utf8(a,b,c) false
#define iri_new() (&dummy_iri)
#define iri_dup(a) (&dummy_iri)