summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2016-03-16 07:17:49 +0100
committerRemi Collet <remi@php.net>2016-03-16 07:17:49 +0100
commit478c80712877da23019802178da1fcd6e6b83e1e (patch)
treeefef5fb0efdd610d0e496bee933c0d151bf7100e
parentddc62f2e8b07217d1593610db29f2ea85b7adb1f (diff)
downloadphp-git-478c80712877da23019802178da1fcd6e6b83e1e.tar.gz
fix #ifdef usage
-rw-r--r--ext/pdo_dblib/dblib_stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c
index 86c6d8308b..9a08f62915 100644
--- a/ext/pdo_dblib/dblib_stmt.c
+++ b/ext/pdo_dblib/dblib_stmt.c
@@ -274,7 +274,7 @@ static int pdo_dblib_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr,
dbdatecrack(H->link, &di, &dt);
*len = spprintf((char**) &tmp_ptr, 20, "%d-%02d-%02d %02d:%02d:%02d",
-#ifdef PHP_DBLIB_IS_MSSQL || MSDBLIB
+#if defined(PHP_DBLIB_IS_MSSQL) || defined(MSDBLIB)
di.year, di.month, di.day, di.hour, di.minute, di.second
#else
di.dateyear, di.datemonth+1, di.datedmonth, di.datehour, di.dateminute, di.datesecond