summaryrefslogtreecommitdiff
path: root/ext/bcmath/php_bcmath.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-07-29 12:26:23 +0200
committerAnatol Belski <ab@php.net>2015-07-29 13:26:35 +0200
commit4e66cce87ce0e57a7394486412e61abcfc5f3520 (patch)
tree74da7597406fcb73d654f193d139c063b3c7093e /ext/bcmath/php_bcmath.h
parent0615aa82d74f91efa4a5a7bcee1b9718fa03f15c (diff)
downloadphp-git-4e66cce87ce0e57a7394486412e61abcfc5f3520.tar.gz
switch to the unified globals accessor where appropriate
Diffstat (limited to 'ext/bcmath/php_bcmath.h')
-rw-r--r--ext/bcmath/php_bcmath.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/bcmath/php_bcmath.h b/ext/bcmath/php_bcmath.h
index 5cb65547aa..b9af2afeb2 100644
--- a/ext/bcmath/php_bcmath.h
+++ b/ext/bcmath/php_bcmath.h
@@ -51,15 +51,11 @@ ZEND_BEGIN_MODULE_GLOBALS(bcmath)
zend_long bc_precision;
ZEND_END_MODULE_GLOBALS(bcmath)
-#ifdef ZTS
-# define BCG(v) ZEND_TSRMG(bcmath_globals_id, zend_bcmath_globals *, v)
-# ifdef COMPILE_DL_BCMATH
+#if defined(ZTS) && defined(COMPILE_DL_BCMATH)
ZEND_TSRMLS_CACHE_EXTERN();
-# endif
-#else
-# define BCG(v) (bcmath_globals.v)
#endif
ZEND_EXTERN_MODULE_GLOBALS(bcmath)
+#define BCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(bcmath, v)
#endif /* PHP_BCMATH_H */