#else /* ENABLE_IRI */
-static struct iri dummy_iri;
+extern struct iri dummy_iri;
-#define parse_charset(str) NULL
+#define parse_charset(str) (str, NULL)
#define find_locale() NULL
#define check_encoding_name(str) false
#define locale_to_utf8(str) (str)