From: George Peter Banyard Date: Wed, 20 May 2020 12:00:09 +0000 (+0200) Subject: Fix [-Wundef] warning in PSpell extension X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=616bf439789e3c6d2f0d99a94dca9921818955c2;p=php Fix [-Wundef] warning in PSpell extension --- diff --git a/ext/pspell/php_pspell.h b/ext/pspell/php_pspell.h index 85d7eb5b15..4fd8db583b 100644 --- a/ext/pspell/php_pspell.h +++ b/ext/pspell/php_pspell.h @@ -16,7 +16,7 @@ #ifndef _PSPELL_H #define _PSPELL_H -#if HAVE_PSPELL +#ifdef HAVE_PSPELL extern zend_module_entry pspell_module_entry; #define pspell_module_ptr &pspell_module_entry diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c index c55166a9df..00a20c86a1 100644 --- a/ext/pspell/pspell.c +++ b/ext/pspell/pspell.c @@ -24,7 +24,7 @@ #include #include -#if HAVE_PSPELL +#ifdef HAVE_PSPELL /* this will enforce compatibility in .12 version (broken after .11.2) */ #define USE_ORIGINAL_MANAGER_FUNCS