summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-05-20 13:59:56 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-05-20 14:01:10 +0200
commitf23b3026bc16dc22c333b91bb5fe08c14ba681e4 (patch)
tree8427331327c6efc1b347c52ea49e924d15c8bac7
parent85104fae379a6bebcd8599d62efe6f96de3728ea (diff)
downloadphp-git-f23b3026bc16dc22c333b91bb5fe08c14ba681e4.tar.gz
Fix [-Wundef] warning in SHMOP extension
-rw-r--r--ext/shmop/php_shmop.h2
-rw-r--r--ext/shmop/shmop.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/shmop/php_shmop.h b/ext/shmop/php_shmop.h
index af17a2b899..659941aa3e 100644
--- a/ext/shmop/php_shmop.h
+++ b/ext/shmop/php_shmop.h
@@ -17,7 +17,7 @@
#ifndef PHP_SHMOP_H
#define PHP_SHMOP_H
-#if HAVE_SHMOP
+#ifdef HAVE_SHMOP
extern zend_module_entry shmop_module_entry;
#define phpext_shmop_ptr &shmop_module_entry
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c
index de2d966143..6f464e8745 100644
--- a/ext/shmop/shmop.c
+++ b/ext/shmop/shmop.c
@@ -34,7 +34,7 @@
#endif
-#if HAVE_SHMOP
+#ifdef HAVE_SHMOP
#include "ext/standard/info.h"