com php-src: fix #ifdef usage: ext/pdo_dblib/dblib_stmt.c
| From: | Remi Collet | Date: | Wed, 16 Mar 2016 06:17:49 +0000 |
| Subject: | com php-src: fix #ifdef usage: ext/pdo_dblib/dblib_stmt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91355@lists.php.net to get a copy of this message | ||
Commit: 478c80712877da23019802178da1fcd6e6b83e1e
Author: Remi Collet <remi@php.net> Wed, 16 Mar 2016 07:17:49 +0100
Parents: ddc62f2e8b07217d1593610db29f2ea85b7adb1f
Branches: PHP-5.6 PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=478c80712877da23019802178da1fcd6e6b83e1e
Log:
fix #ifdef usage
Changed paths:
M ext/pdo_dblib/dblib_stmt.c
Diff:
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c
index 86c6d83..9a08f62 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