diff options
author | Peter Kokot <peterkokot@gmail.com> | 2019-03-03 02:54:03 +0100 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-03-04 12:13:12 +0100 |
commit | a8c3e22d231a9993c253d446ce23425662ac1645 (patch) | |
tree | 10cf43503ac31bc6157dcb908fa0c533055dc4b2 /ext/soap/php_encoding.c | |
parent | 1c32d751c7cb2abf26b1589f26c80558597e489b (diff) | |
download | php-git-a8c3e22d231a9993c253d446ce23425662ac1645.tar.gz |
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.
Diffstat (limited to 'ext/soap/php_encoding.c')
-rw-r--r-- | ext/soap/php_encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 88189beff7..d94a979388 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -2857,7 +2857,7 @@ static xmlNodePtr to_xml_datetime_ex(encodeTypePtr type, zval *data, char *forma } /* Time zone support */ -#ifdef HAVE_TM_GMTOFF +#ifdef HAVE_STRUCT_TM_TM_GMTOFF snprintf(tzbuf, sizeof(tzbuf), "%c%02d:%02d", (ta->tm_gmtoff < 0) ? '-' : '+', abs(ta->tm_gmtoff / 3600), abs( (ta->tm_gmtoff % 3600) / 60 )); #else # if defined(__CYGWIN__) || (defined(PHP_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1900) |