summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-09-22 20:58:45 +0200
committerAnatol Belski <ab@php.net>2014-09-22 20:58:45 +0200
commit4db75dc8533a69e8849651ab5d0fa84efa3d8bba (patch)
treec9157b7b61f70e35ed94e7457ee06fbaa0221cc3 /win32
parentf2e636de051f2891a492d3ceaabc3afd6f930c7f (diff)
downloadphp-git-4db75dc8533a69e8849651ab5d0fa84efa3d8bba.tar.gz
basic windows fix
Diffstat (limited to 'win32')
-rw-r--r--win32/globals.c2
-rw-r--r--win32/php_win32_globals.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/win32/globals.c b/win32/globals.c
index ec4180db38..47f4ebacce 100644
--- a/win32/globals.c
+++ b/win32/globals.c
@@ -23,7 +23,7 @@
#include "syslog.h"
#ifdef ZTS
-PHPAPI int php_win32_core_globals_id;
+TSRMG_D(php_win32_core_globals, php_win32_core_globals_id);
#else
php_win32_core_globals the_php_win32_core_globals;
#endif
diff --git a/win32/php_win32_globals.h b/win32/php_win32_globals.h
index 42f5ec9411..ae975dcb31 100644
--- a/win32/php_win32_globals.h
+++ b/win32/php_win32_globals.h
@@ -27,7 +27,7 @@ typedef struct _php_win32_core_globals php_win32_core_globals;
#ifdef ZTS
# define PW32G(v) TSRMG(php_win32_core_globals_id, php_win32_core_globals*, v)
-extern PHPAPI int php_win32_core_globals_id;
+TSRMG_DH(php_win32_core_globals, php_win32_core_globals_id);
#else
# define PW32G(v) (the_php_win32_core_globals.v)
extern PHPAPI struct _php_win32_core_globals the_php_win32_core_globals;