From: Michael Wallner Date: Thu, 1 Feb 2018 13:36:09 +0000 (+0100) Subject: fix #73 X-Git-Tag: RELEASE_3_2_0_RC1~45 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=8158548a80733b3af9539356b47527d960a13287;hp=3f49890b5a7dc529507f65d03e5118a74fa008d9 fix #73 include idna.h prior idn2.h to ensure INDA_H is defined and libidn2 does not try to define the idna compat layer --- diff --git a/src/php_http.c b/src/php_http.c index 207c248..bc9166a 100644 --- a/src/php_http.c +++ b/src/php_http.c @@ -31,12 +31,12 @@ #if PHP_HTTP_HAVE_LIBICU # include #endif -#if PHP_HTTP_HAVE_LIBIDN2 -# include -#endif #if PHP_HTTP_HAVE_LIBIDN # include #endif +#if PHP_HTTP_HAVE_LIBIDN2 +# include +#endif #if PHP_HTTP_HAVE_LIBIDNKIT2 || PHP_HTTP_HAVE_LIBIDNKIT #include "idn/version.h" #endif diff --git a/src/php_http_url.c b/src/php_http_url.c index 029e6a8..361e61c 100644 --- a/src/php_http_url.c +++ b/src/php_http_url.c @@ -12,12 +12,12 @@ #include "php_http_api.h" -#if PHP_HTTP_HAVE_LIBIDN2 -# include -#endif #if PHP_HTTP_HAVE_LIBIDN # include #endif +#if PHP_HTTP_HAVE_LIBIDN2 +# include +#endif #if PHP_HTTP_HAVE_LIBICU # include #endif