summaryrefslogtreecommitdiff
path: root/ext/recode/php_recode.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-18 11:46:00 +0000
committerWez Furlong <wez@php.net>2002-03-18 11:46:00 +0000
commit8ba251425310f621a36329731c61439b9bd52a05 (patch)
tree8838d27fee72854eff4b176eb3aaf31384356ddf /ext/recode/php_recode.h
parentdd9a3c94a82780ac384abb0efb7ebd3dd7f2b03a (diff)
downloadphp-git-8ba251425310f621a36329731c61439b9bd52a05.tar.gz
Fix build.
Warning about TSRM testing still applies.
Diffstat (limited to 'ext/recode/php_recode.h')
-rw-r--r--ext/recode/php_recode.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/ext/recode/php_recode.h b/ext/recode/php_recode.h
index 641e7d1000..dcdf4fd024 100644
--- a/ext/recode/php_recode.h
+++ b/ext/recode/php_recode.h
@@ -61,19 +61,20 @@ PHP_MINFO_FUNCTION(recode);
PHP_FUNCTION(recode_string);
PHP_FUNCTION(recode_file);
-typedef struct {
+#ifdef ZTS
+#include "TSRM.h"
+#endif
+
+ZEND_BEGIN_MODULE_GLOBALS(recode)
RECODE_OUTER outer;
-} php_recode_globals;
+ZEND_END_MODULE_GLOBALS(recode)
#ifdef ZTS
-# define ReSG(v) TSRMG(recode_globals_id, php_recode_globals *, v)
+#define ReSG(v) TSRMG(recode_globals_id, zend_recode_globals *, v)
#else
-# define ReSG(v) (recode_globals.v)
-extern PHP_MYSQL_API php_recode_globals recode_globals;
+#define ReSG(v) (recode_globals.v)
#endif
-#else
-#define phpext_recode_ptr NULL
#endif
-
+
#endif /* PHP_RECODE_H */