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/pgsql/php_pgsql.h | |
parent | 0615aa82d74f91efa4a5a7bcee1b9718fa03f15c (diff) | |
download | php-git-4e66cce87ce0e57a7394486412e61abcfc5f3520.tar.gz |
switch to the unified globals accessor where appropriate
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
-rw-r--r-- | ext/pgsql/php_pgsql.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index 1b31c75b31..147c3e6d6e 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -323,14 +323,10 @@ ZEND_BEGIN_MODULE_GLOBALS(pgsql) ZEND_END_MODULE_GLOBALS(pgsql) ZEND_EXTERN_MODULE_GLOBALS(pgsql) +# define PGG(v) ZEND_MODULE_GLOBALS_ACCESSOR(pgsql, v) -#ifdef ZTS -# define PGG(v) ZEND_TSRMG(pgsql_globals_id, zend_pgsql_globals *, v) -# ifdef COMPILE_DL_PGSQL +#if defined(ZTS) && defined(COMPILE_DL_PGSQL) ZEND_TSRMLS_CACHE_EXTERN(); -# endif -#else -# define PGG(v) (pgsql_globals.v) #endif #endif |