summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-05-12 22:29:51 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-05-16 15:31:13 +0200
commitb35addc585edf964a1f83e956adff5d32b1242e7 (patch)
treea8855c03704fbfe9116c3e95902a2f08d2cc1be0
parent0e016f2843be44f6c3bfc0e97fd2ac91bafc290f (diff)
downloadphp-git-b35addc585edf964a1f83e956adff5d32b1242e7.tar.gz
Fix [-Wundef] warning in CType extension
-rw-r--r--ext/ctype/ctype.c2
-rw-r--r--ext/ctype/php_ctype.h2
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 <ctype.h>
-#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