summaryrefslogtreecommitdiff
path: root/ext/date/php_date.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/php_date.h')
-rw-r--r--ext/date/php_date.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/date/php_date.h b/ext/date/php_date.h
index a2f5261ee6..116ea328e0 100644
--- a/ext/date/php_date.h
+++ b/ext/date/php_date.h
@@ -202,11 +202,7 @@ ZEND_BEGIN_MODULE_GLOBALS(date)
int timezone_valid;
ZEND_END_MODULE_GLOBALS(date)
-#ifdef ZTS
-#define DATEG(v) ZEND_TSRMG(date_globals_id, zend_date_globals *, v)
-#else
-#define DATEG(v) (date_globals.v)
-#endif
+#define DATEG(v) ZEND_MODULE_GLOBALS_ACCESSOR(date, v)
/* Backwards compatibility wrapper */
PHPAPI zend_long php_parse_date(char *string, zend_long *now);