]> granicus.if.org Git - php/commitdiff
Fix [-Wundef] warning in Iconv extension
authorGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 15:35:51 +0000 (17:35 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 16:22:09 +0000 (18:22 +0200)
ext/iconv/iconv.c

index ad427eaf3a7cc9197caaac0f9404a5117511d313..ee23559a63fc307c13b41bf6443b925415a9675c 100644 (file)
@@ -198,7 +198,7 @@ PHP_MINIT_FUNCTION(miconv)
 
        REGISTER_INI_ENTRIES();
 
-#if HAVE_LIBICONV
+#ifdef HAVE_LIBICONV
        {
                static char buf[16];
                snprintf(buf, sizeof(buf), "%d.%d",
@@ -417,7 +417,7 @@ static php_iconv_err_t _php_iconv_appendc(smart_str *d, const char c, iconv_t cd
 /* }}} */
 
 /* {{{ */
-#if ICONV_BROKEN_IGNORE
+#ifdef ICONV_BROKEN_IGNORE
 static int _php_check_ignore(const char *charset)
 {
   size_t clen = strlen(charset);