]> granicus.if.org Git - php/commitdiff
Fix [-Wundef] warning in PCRE extension
authorGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 11:59:38 +0000 (13:59 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 12:01:10 +0000 (14:01 +0200)
ext/pcre/pcre2lib/config.h
ext/pcre/php_pcre.h

index 78648977431f8658f0539d0c8087f3a301d842e7..9bd2a9e1bafd3785faeb63ff16661ea7ef5d259a 100644 (file)
 #endif
 
 /* Define to any value for valgrind support to find invalid memory reads. */
-#if HAVE_PCRE_VALGRIND_SUPPORT
+#ifdef HAVE_PCRE_VALGRIND_SUPPORT
 #define SUPPORT_VALGRIND 1
 #endif
 
 /* Define to any value to enable support for Just-In-Time compiling. */
-#if HAVE_PCRE_JIT_SUPPORT
+#ifdef HAVE_PCRE_JIT_SUPPORT
 #define SUPPORT_JIT
 #endif
 
index bf78f992fa85bf1bde62482ebf68be15ae0ead0f..4666f11b78e046b14a1f5024f31beb13375318d1 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef PHP_PCRE_H
 #define PHP_PCRE_H
 
-#if HAVE_BUNDLED_PCRE
+#ifdef HAVE_BUNDLED_PCRE
 #include "pcre2lib/pcre2.h"
 #else
 #include "pcre2.h"