From: George Peter Banyard Date: Wed, 20 May 2020 11:59:50 +0000 (+0200) Subject: Fix [-Wundef] warning in ODBC extension X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85104fae379a6bebcd8599d62efe6f96de3728ea;p=php Fix [-Wundef] warning in ODBC extension --- diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 368f37fd88..b1594150a6 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -34,7 +34,7 @@ #include "php_globals.h" #include "odbc_arginfo.h" -#if HAVE_UODBC +#ifdef HAVE_UODBC #include #include "ext/standard/head.h" diff --git a/ext/odbc/php_odbc.h b/ext/odbc/php_odbc.h index 93a1659400..a7c34c7bb2 100644 --- a/ext/odbc/php_odbc.h +++ b/ext/odbc/php_odbc.h @@ -19,7 +19,7 @@ #ifndef PHP_ODBC_H #define PHP_ODBC_H -#if HAVE_UODBC +#ifdef HAVE_UODBC #ifdef ZTS #include "TSRM.h" diff --git a/ext/odbc/php_odbc_includes.h b/ext/odbc/php_odbc_includes.h index 5e2e83e7b2..1d7da73528 100644 --- a/ext/odbc/php_odbc_includes.h +++ b/ext/odbc/php_odbc_includes.h @@ -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 */