summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/pdo_mysql.c
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-05-20 15:41:13 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-05-20 16:29:52 +0200
commitc932cc841ab1bd80dbb1465f29d58302c95e8c78 (patch)
tree0d75ec3917bb58c6b4f73f81bead5f49a672a8b8 /ext/pdo_mysql/pdo_mysql.c
parentdb7dc2fa2fdea20a70f1a45c2e05988579398d7a (diff)
downloadphp-git-c932cc841ab1bd80dbb1465f29d58302c95e8c78.tar.gz
Fix [-Wundef] warning in PDO MySQL extension
Diffstat (limited to 'ext/pdo_mysql/pdo_mysql.c')
-rw-r--r--ext/pdo_mysql/pdo_mysql.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pdo_mysql/pdo_mysql.c b/ext/pdo_mysql/pdo_mysql.c
index e69e857ef0..1821e247ae 100644
--- a/ext/pdo_mysql/pdo_mysql.c
+++ b/ext/pdo_mysql/pdo_mysql.c
@@ -48,7 +48,7 @@ ZEND_DECLARE_MODULE_GLOBALS(pdo_mysql)
# ifdef PHP_MYSQL_UNIX_SOCK_ADDR
# define PDO_MYSQL_UNIX_ADDR PHP_MYSQL_UNIX_SOCK_ADDR
# else
-# if !PHP_WIN32
+# ifndef PHP_WIN32
# define PDO_MYSQL_UNIX_ADDR "/tmp/mysql.sock"
# else
# define PDO_MYSQL_UNIX_ADDR NULL
@@ -143,7 +143,7 @@ static PHP_MINIT_FUNCTION(pdo_mysql)
static PHP_MSHUTDOWN_FUNCTION(pdo_mysql)
{
php_pdo_unregister_driver(&pdo_mysql_driver);
-#if PDO_USE_MYSQLND
+#ifdef PDO_USE_MYSQLND
UNREGISTER_INI_ENTRIES();
#endif
@@ -169,7 +169,7 @@ static PHP_MINFO_FUNCTION(pdo_mysql)
/* }}} */
-#if PDO_USE_MYSQLND && PDO_DBG_ENABLED
+#if defined(PDO_USE_MYSQLND) && PDO_DBG_ENABLED
/* {{{ PHP_RINIT_FUNCTION
*/
static PHP_RINIT_FUNCTION(pdo_mysql)
@@ -245,7 +245,7 @@ zend_module_entry pdo_mysql_module_entry = {
pdo_mysql_functions,
PHP_MINIT(pdo_mysql),
PHP_MSHUTDOWN(pdo_mysql),
-#if PDO_USE_MYSQLND && PDO_DBG_ENABLED
+#if defined(PDO_USE_MYSQLND) && PDO_DBG_ENABLED
PHP_RINIT(pdo_mysql),
PHP_RSHUTDOWN(pdo_mysql),
#else