]> granicus.if.org Git - php/commitdiff
Fix [-Wundef] warning in PSpell extension
authorGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 12:00:09 +0000 (14:00 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 12:01:11 +0000 (14:01 +0200)
ext/pspell/php_pspell.h
ext/pspell/pspell.c

index 85d7eb5b1566a11204698bf7bad952601605a3bc..4fd8db583bca9625d347635b1957f53d105e2b3b 100644 (file)
@@ -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
 
index c55166a9df9c67d31a72430f15336b4ec0525a59..00a20c86a19f497b4e7e8168d24dd99d1ec6c0ae 100644 (file)
@@ -24,7 +24,7 @@
 #include <ctype.h>
 #include <stdio.h>
 
-#if HAVE_PSPELL
+#ifdef HAVE_PSPELL
 
 /* this will enforce compatibility in .12 version (broken after .11.2) */
 #define USE_ORIGINAL_MANAGER_FUNCS