From d50b076fa30f5b88e05aa29cfbb70da9b0c312e4 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Wed, 20 May 2020 13:59:38 +0200 Subject: [PATCH] Fix [-Wundef] warning in PCRE extension --- ext/pcre/pcre2lib/config.h | 4 ++-- ext/pcre/php_pcre.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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" -- 2.50.1