From: George Peter Banyard Date: Tue, 12 May 2020 20:29:51 +0000 (+0200) Subject: Fix [-Wundef] warning in CType extension X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b35addc585edf964a1f83e956adff5d32b1242e7;p=php Fix [-Wundef] warning in CType extension --- diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c index 0b428ceccd..18d36a7b82 100644 --- a/ext/ctype/ctype.c +++ b/ext/ctype/ctype.c @@ -27,7 +27,7 @@ #include -#if HAVE_CTYPE +#ifdef HAVE_CTYPE static PHP_MINFO_FUNCTION(ctype); diff --git a/ext/ctype/php_ctype.h b/ext/ctype/php_ctype.h index 4fb5d93a09..d4bcb5ed1b 100644 --- a/ext/ctype/php_ctype.h +++ b/ext/ctype/php_ctype.h @@ -20,7 +20,7 @@ #include "php_version.h" #define PHP_CTYPE_VERSION PHP_VERSION -#if HAVE_CTYPE +#ifdef HAVE_CTYPE extern zend_module_entry ctype_module_entry; #define phpext_ctype_ptr &ctype_module_entry