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/gmp/php_gmp.h | |
parent | 0615aa82d74f91efa4a5a7bcee1b9718fa03f15c (diff) | |
download | php-git-4e66cce87ce0e57a7394486412e61abcfc5f3520.tar.gz |
switch to the unified globals accessor where appropriate
Diffstat (limited to 'ext/gmp/php_gmp.h')
-rw-r--r-- | ext/gmp/php_gmp.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/gmp/php_gmp.h b/ext/gmp/php_gmp.h index 2ca592907e..51c6d1270c 100644 --- a/ext/gmp/php_gmp.h +++ b/ext/gmp/php_gmp.h @@ -95,14 +95,11 @@ ZEND_BEGIN_MODULE_GLOBALS(gmp) gmp_randstate_t rand_state; ZEND_END_MODULE_GLOBALS(gmp) -#ifdef ZTS -#define GMPG(v) ZEND_TSRMG(gmp_globals_id, zend_gmp_globals *, v) -#ifdef COMPILE_DL_GMP +#define GMPG(v) ZEND_MODULE_GLOBALS_ACCESSOR(gmp, v) + +#if defined(ZTS) && defined(COMPILE_DL_GMP) ZEND_TSRMLS_CACHE_EXTERN(); #endif -#else -#define GMPG(v) (gmp_globals.v) -#endif #else |