Skip to content

Commit 9051f19

Browse files
committed
Replace PHP_TM_GMTOFF with AC_CHECK_MEMBERS
Changes: - PHP_TM_GMTOFF removed - HAVE_TM_GMTOFF replaced with HAVE_STRUCT_TM_TM_GMTOFF - HAVE_TM_ZONE replaced with HAVE_STRUCT_TM_TM_ZONE - HAVE_TZNAME removed The PHP_TM_GMTOFF macro can be replaced with Autoconf's AC_CHECK_MEMBERS that defines the HAVE_STRUCT_TM_TM_GMTOFF symbol instead of the HAVE_TM_ZONE. The HAVE_TZNAME symbol is not used in current code. The obsolete HAVE_TM_ZONE symbol has been replaced with more proper HAVE_STRUCT_TM_TM_ZONE. These are defined by the AC_STRUCT_TIMEZONE macro.
1 parent 60fc212 commit 9051f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibase_query.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ static int _php_ibase_var_zval(zval *val, void *data, int type, int len, /* {{{
13901390
always sets tm_isdst to 0, sometimes incorrectly (InterBase 6 bug?)
13911391
*/
13921392
t.tm_isdst = -1;
1393-
#if HAVE_TM_ZONE
1393+
#if HAVE_STRUCT_TM_TM_ZONE
13941394
t.tm_zone = tzname[0];
13951395
#endif
13961396
if (flag & PHP_IBASE_UNIXTIME) {

0 commit comments

Comments
 (0)