bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH] Include libunistring headers only when used


From: Mike Frysinger
Subject: [Bug-wget] [PATCH] Include libunistring headers only when used
Date: Mon, 20 Mar 2017 03:00:19 -0400

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

[Prev in Thread] Current Thread [Next in Thread]