Include libunistring headers only when used

* src/iri.c: Check for libidn2 < 0.14 to include libunistring headers

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.
This commit is contained in:
Mike Frysinger 2017-03-20 03:00:19 -04:00 committed by Tim Rühsen
parent 84a93f4127
commit e249844143

View File

@ -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"