summaryrefslogtreecommitdiff
path: root/ext/zlib/php_zlib.h
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-07-30 19:39:26 (GMT)
committerfoobar <sniper@php.net>2001-07-30 19:39:26 (GMT)
commit3b7bc2535abea052548fe7635f2c3ec530af4ae7 (patch)
tree743164f4422627d40fe8202fe4c1085d8e677cb0 /ext/zlib/php_zlib.h
parent1594f0967b69decb9cc088e87d894af0cf2e4240 (diff)
downloadphp-3b7bc2535abea052548fe7635f2c3ec530af4ae7.tar.gz
Make this compile in ZTS mode.
Diffstat (limited to 'ext/zlib/php_zlib.h')
-rw-r--r--ext/zlib/php_zlib.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/zlib/php_zlib.h b/ext/zlib/php_zlib.h
index eccbc55..f0732de 100644
--- a/ext/zlib/php_zlib.h
+++ b/ext/zlib/php_zlib.h
@@ -24,8 +24,7 @@
#include <zlib.h>
-
-typedef struct {
+ZEND_BEGIN_MODULE_GLOBALS(zlib)
int gzgetss_state;
/* variables for transparent gzip encoding */
@@ -35,7 +34,7 @@ typedef struct {
int ob_gzhandler_status;
int ob_gzip_coding;
int output_compression;
-} php_zlib_globals;
+ZEND_END_MODULE_GLOBALS(zlib)
extern zend_module_entry php_zlib_module_entry;
#define zlib_module_ptr &php_zlib_module_entry
@@ -70,7 +69,6 @@ int php_enable_output_compression(int buffer_size);
#ifdef ZTS
-#define ZLIBG(v) (zlib_globals->v)
#define ZLIBG(v) TSRMG(zlib_globals_id, zend_zlib_globals *, v)
#else
#define ZLIBG(v) (zlib_globals.v)