From b35addc585edf964a1f83e956adff5d32b1242e7 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Tue, 12 May 2020 22:29:51 +0200 Subject: [PATCH] Fix [-Wundef] warning in CType extension --- ext/ctype/ctype.c | 2 +- ext/ctype/php_ctype.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.50.1