diff options
author | Anatol Belski <ab@php.net> | 2015-07-29 12:26:23 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-07-29 13:26:35 +0200 |
commit | 4e66cce87ce0e57a7394486412e61abcfc5f3520 (patch) | |
tree | 74da7597406fcb73d654f193d139c063b3c7093e /ext/tidy/php_tidy.h | |
parent | 0615aa82d74f91efa4a5a7bcee1b9718fa03f15c (diff) | |
download | php-git-4e66cce87ce0e57a7394486412e61abcfc5f3520.tar.gz |
switch to the unified globals accessor where appropriate
Diffstat (limited to 'ext/tidy/php_tidy.h')
-rw-r--r-- | ext/tidy/php_tidy.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/tidy/php_tidy.h b/ext/tidy/php_tidy.h index 76d42e4566..42b8264d6b 100644 --- a/ext/tidy/php_tidy.h +++ b/ext/tidy/php_tidy.h @@ -42,14 +42,11 @@ ZEND_BEGIN_MODULE_GLOBALS(tidy) zend_bool clean_output; ZEND_END_MODULE_GLOBALS(tidy) -#ifdef ZTS -#define TG(v) ZEND_TSRMG(tidy_globals_id, zend_tidy_globals *, v) -#ifdef COMPILE_DL_TIDY +#define TG(v) ZEND_MODULE_GLOBALS_ACCESSOR(tidy, v) + +#if defined(ZTS) && defined(COMPILE_DL_TIDY) ZEND_TSRMLS_CACHE_EXTERN(); #endif -#else -#define TG(v) (tidy_globals.v) -#endif #endif |