]> granicus.if.org Git - php/commitdiff
Fix [-Wundef] warning in CType extension
authorGeorge Peter Banyard <girgias@php.net>
Tue, 12 May 2020 20:29:51 +0000 (22:29 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Sat, 16 May 2020 13:31:13 +0000 (15:31 +0200)
ext/ctype/ctype.c
ext/ctype/php_ctype.h

index 0b428ceccdff0c72eb652aa4d9c784fc5f493486..18d36a7b82c4a4368d5f4025901a736fea53962c 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <ctype.h>
 
-#if HAVE_CTYPE
+#ifdef HAVE_CTYPE
 
 static PHP_MINFO_FUNCTION(ctype);
 
index 4fb5d93a09cc6cef3dce9c799fb36c26c75d299b..d4bcb5ed1b903ae86ad00e8aaa47ce666789cdcd 100644 (file)
@@ -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