diff options
Diffstat (limited to 'ext/bcmath/php_bcmath.h')
-rw-r--r-- | ext/bcmath/php_bcmath.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ext/bcmath/php_bcmath.h b/ext/bcmath/php_bcmath.h index 5cb65547aa..9075d16b30 100644 --- a/ext/bcmath/php_bcmath.h +++ b/ext/bcmath/php_bcmath.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2015 The PHP Group | + | Copyright (c) 1997-2016 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -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 -ZEND_TSRMLS_CACHE_EXTERN(); -# endif -#else -# define BCG(v) (bcmath_globals.v) +#if defined(ZTS) && defined(COMPILE_DL_BCMATH) +ZEND_TSRMLS_CACHE_EXTERN() #endif ZEND_EXTERN_MODULE_GLOBALS(bcmath) +#define BCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(bcmath, v) #endif /* PHP_BCMATH_H */ |