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/odbc | |
parent | 0615aa82d74f91efa4a5a7bcee1b9718fa03f15c (diff) | |
download | php-git-4e66cce87ce0e57a7394486412e61abcfc5f3520.tar.gz |
switch to the unified globals accessor where appropriate
Diffstat (limited to 'ext/odbc')
-rw-r--r-- | ext/odbc/php_odbc_includes.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/odbc/php_odbc_includes.h b/ext/odbc/php_odbc_includes.h index 832c65da3e..9d8799c5fb 100644 --- a/ext/odbc/php_odbc_includes.h +++ b/ext/odbc/php_odbc_includes.h @@ -296,14 +296,11 @@ void odbc_sql_error(ODBC_SQL_ERROR_PARAMS); #endif #define IS_SQL_BINARY(x) (x == SQL_BINARY || x == SQL_VARBINARY || x == SQL_LONGVARBINARY) -#ifdef ZTS -# define ODBCG(v) ZEND_TSRMG(odbc_globals_id, zend_odbc_globals *, v) -# ifdef COMPILE_DL_ODBC +PHPAPI ZEND_EXTERN_MODULE_GLOBALS(odbc) +#define ODBCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(odbc, v) + +#if defined(ZTS) && defined(COMPILE_DL_ODBC) ZEND_TSRMLS_CACHE_EXTERN(); -# endif -#else -# define ODBCG(v) (odbc_globals.v) -extern ZEND_API zend_odbc_globals odbc_globals; #endif #endif /* HAVE_UODBC */ |