]> granicus.if.org Git - php/commitdiff
Fix [-Wundef] warning in ODBC extension
authorGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 11:59:50 +0000 (13:59 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 12:01:10 +0000 (14:01 +0200)
ext/odbc/php_odbc.c
ext/odbc/php_odbc.h
ext/odbc/php_odbc_includes.h

index 368f37fd88560145b6f52246170a82822c552f13..b1594150a68669ad0b9d5801bb1f7c568e7140c0 100644 (file)
@@ -34,7 +34,7 @@
 #include "php_globals.h"
 #include "odbc_arginfo.h"
 
-#if HAVE_UODBC
+#ifdef HAVE_UODBC
 
 #include <fcntl.h>
 #include "ext/standard/head.h"
index 93a16594008e6e500480b170170087d70a2f5f9a..a7c34c7bb22b9d9ef26c6a066d4832ed48f89ba1 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef PHP_ODBC_H
 #define PHP_ODBC_H
 
-#if HAVE_UODBC
+#ifdef HAVE_UODBC
 
 #ifdef ZTS
 #include "TSRM.h"
index 5e2e83e7b23a71c7d7fd629f0b084885a559cd8e..1d7da7352891db3d009b688e4f8a8321a6937fb9 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef PHP_ODBC_INCLUDES_H
 #define PHP_ODBC_INCLUDES_H
 
-#if HAVE_UODBC
+#ifdef HAVE_UODBC
 
 /* checking in the same order as in configure.ac */