Skip to content

Commit 9cc24ba

Browse files
committed
Fix [-Wundef] warning in Iconv extension
1 parent 2f0dcf2 commit 9cc24ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/iconv/iconv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ PHP_MINIT_FUNCTION(miconv)
198198

199199
REGISTER_INI_ENTRIES();
200200

201-
#if HAVE_LIBICONV
201+
#ifdef HAVE_LIBICONV
202202
{
203203
static char buf[16];
204204
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
417417
/* }}} */
418418

419419
/* {{{ */
420-
#if ICONV_BROKEN_IGNORE
420+
#ifdef ICONV_BROKEN_IGNORE
421421
static int _php_check_ignore(const char *charset)
422422
{
423423
size_t clen = strlen(charset);

0 commit comments

Comments
 (0)