The unistring functions are used only when an older version of libidn2
is used, so don't include its headers either w/newer libdin2 versions.
---
 src/iri.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/iri.c b/src/iri.c
index 8be109e6961c..db87135bae1b 100644
--- a/src/iri.c
+++ b/src/iri.c
@@ -39,8 +39,10 @@ as that of the covered work.  */
 # include <iconv.h>
 #endif
 #include <idn2.h>
-#include <unicase.h>
-#include <unistr.h>
+#if IDN2_VERSION_NUMBER < 0x00140000
+# include <unicase.h>
+# include <unistr.h>
+#endif
 
 #include "utils.h"
 #include "url.h"
-- 
2.12.0


Reply via email to