From: Michael Wallner Date: Wed, 5 Oct 2016 11:15:28 +0000 (+0200) Subject: fix build with GCC-4 X-Git-Tag: RELEASE_3_1_0~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=294724730ce2865ecb887ffbb3a1ea8afdea37f5;p=m6w6%2Fext-http fix build with GCC-4 closes #54 --- diff --git a/src/php_http_url.c b/src/php_http_url.c index 4d76295..5e8592e 100644 --- a/src/php_http_url.c +++ b/src/php_http_url.c @@ -1003,11 +1003,11 @@ static ZEND_RESULT_CODE parse_uidn_2003(struct parse_state *state) goto error; } -# if __GNUC__ +# if __GNUC__ >= 5 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" # endif ahost_len = uidna_IDNToASCII(uhost_str, uhost_len, ahost_str, 256, 3, NULL, &rc); -# if __GNUC__ +# if __GNUC__ >= 5 # pragma GCC diagnostic pop # endif