summaryrefslogtreecommitdiff
path: root/ext/gmp/php_gmp.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-17 15:51:21 +0200
committerAnatol Belski <ab@php.net>2014-10-17 15:51:21 +0200
commit4fce2ae2c64b61e5ef7cdbdb631b8d5691d1b31f (patch)
treec1e4941189f82e6575fb57de7b0d047404fd0a38 /ext/gmp/php_gmp.h
parent5749b4a9979cd3ff85996323bed9adc1bd182f76 (diff)
downloadphp-git-4fce2ae2c64b61e5ef7cdbdb631b8d5691d1b31f.tar.gz
opcache, intl, gmp, exif, com, bcmath to use static tsrmls
Diffstat (limited to 'ext/gmp/php_gmp.h')
-rw-r--r--ext/gmp/php_gmp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/gmp/php_gmp.h b/ext/gmp/php_gmp.h
index f9bc0f3269..7e8e51b291 100644
--- a/ext/gmp/php_gmp.h
+++ b/ext/gmp/php_gmp.h
@@ -92,7 +92,10 @@ ZEND_BEGIN_MODULE_GLOBALS(gmp)
ZEND_END_MODULE_GLOBALS(gmp)
#ifdef ZTS
-#define GMPG(v) TSRMG(gmp_globals_id, zend_gmp_globals *, v)
+#define GMPG(v) ZEND_TSRMG(gmp_globals_id, zend_gmp_globals *, v)
+#ifdef COMPILE_DL_GMP
+ZEND_TSRMLS_CACHE_EXTERN;
+#endif
#else
#define GMPG(v) (gmp_globals.v)
#endif