From: George Peter Banyard Date: Wed, 20 May 2020 11:59:38 +0000 (+0200) Subject: Fix [-Wundef] warning in PCRE extension X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d50b076fa30f5b88e05aa29cfbb70da9b0c312e4;p=php Fix [-Wundef] warning in PCRE extension --- diff --git a/ext/pcre/pcre2lib/config.h b/ext/pcre/pcre2lib/config.h index 7864897743..9bd2a9e1ba 100644 --- a/ext/pcre/pcre2lib/config.h +++ b/ext/pcre/pcre2lib/config.h @@ -20,12 +20,12 @@ #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 diff --git a/ext/pcre/php_pcre.h b/ext/pcre/php_pcre.h index bf78f992fa..4666f11b78 100644 --- a/ext/pcre/php_pcre.h +++ b/ext/pcre/php_pcre.h @@ -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"