diff --git a/PHP/php_snowdrift.h b/PHP/php_snowdrift.h index e3d96c6..18e6560 100644 --- a/PHP/php_snowdrift.h +++ b/PHP/php_snowdrift.h @@ -51,6 +51,8 @@ extern zend_module_entry snowdrift_module_entry; #define ZEND_ACC_DTOR 0 #endif +#define SD_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(snowdrift, v) + ZEND_BEGIN_MODULE_GLOBALS(snowdrift) uint8_t Method; uint64_t BaseTime; @@ -64,10 +66,6 @@ uint8_t Multi; ZEND_END_MODULE_GLOBALS(snowdrift) -ZEND_DECLARE_MODULE_GLOBALS(snowdrift) - -#define SD_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(snowdrift, v) - #if defined(ZTS) && defined(COMPILE_DL_SNOWDRIFT) ZEND_TSRMLS_CACHE_EXTERN() #endif diff --git a/PHP/snowdrift.c b/PHP/snowdrift.c index 8cd13e7..5351749 100644 --- a/PHP/snowdrift.c +++ b/PHP/snowdrift.c @@ -38,6 +38,8 @@ zend_class_entry snowdrift_ce; static uint16_t wid_num = 0; +ZEND_DECLARE_MODULE_GLOBALS(snowdrift) + /* {{{ PHP_INI */ PHP_INI_BEGIN()