From 85104fae379a6bebcd8599d62efe6f96de3728ea Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Wed, 20 May 2020 13:59:50 +0200 Subject: [PATCH] Fix [-Wundef] warning in ODBC extension --- ext/odbc/php_odbc.c | 2 +- ext/odbc/php_odbc.h | 2 +- ext/odbc/php_odbc_includes.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 368f37fd885..b1594150a68 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 93a16594008..a7c34c7bb22 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 5e2e83e7b23..1d7da735289 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 */