summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/php_com_dotnet.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/com_dotnet/php_com_dotnet.h')
-rw-r--r--ext/com_dotnet/php_com_dotnet.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/com_dotnet/php_com_dotnet.h b/ext/com_dotnet/php_com_dotnet.h
index cb60083289..5066a044ff 100644
--- a/ext/com_dotnet/php_com_dotnet.h
+++ b/ext/com_dotnet/php_com_dotnet.h
@@ -53,7 +53,10 @@ ZEND_BEGIN_MODULE_GLOBALS(com_dotnet)
ZEND_END_MODULE_GLOBALS(com_dotnet)
#ifdef ZTS
-# define COMG(v) TSRMG(com_dotnet_globals_id, zend_com_dotnet_globals *, v)
+# define COMG(v) ZEND_TSRMG(com_dotnet_globals_id, zend_com_dotnet_globals *, v)
+# ifdef COMPILE_DL_COM_DOTNET
+ZEND_TSRMLS_CACHE_EXTERN;
+# endif
#else
# define COMG(v) (com_dotnet_globals.v)
#endif