From 0787cd60ed3d0c8c8c8ff7e49b9bb3587bf33b64 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 29 Jul 2015 10:35:57 +0200 Subject: first stone on using the unified globals accessor --- ext/pcre/php_pcre.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ext/pcre/php_pcre.h') diff --git a/ext/pcre/php_pcre.h b/ext/pcre/php_pcre.h index fb155c467e..d3fe0b5d10 100644 --- a/ext/pcre/php_pcre.h +++ b/ext/pcre/php_pcre.h @@ -82,12 +82,7 @@ ZEND_BEGIN_MODULE_GLOBALS(pcre) ZEND_END_MODULE_GLOBALS(pcre) PHPAPI ZEND_EXTERN_MODULE_GLOBALS(pcre); - -#ifdef ZTS -# define PCRE_G(v) ZEND_TSRMG(pcre_globals_id, zend_pcre_globals *, v) -#else -# define PCRE_G(v) (pcre_globals.v) -#endif +#define PCRE_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(pcre, v) #else -- cgit v1.2.1