summaryrefslogtreecommitdiff
path: root/TSRM/TSRM.c
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 /TSRM/TSRM.c
parentf2e636de051f2891a492d3ceaabc3afd6f930c7f (diff)
downloadphp-git-4db75dc8533a69e8849651ab5d0fa84efa3d8bba.tar.gz
basic windows fix
Diffstat (limited to 'TSRM/TSRM.c')
-rw-r--r--TSRM/TSRM.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c
index 6b0bf445e9..3bd66b3cf7 100644
--- a/TSRM/TSRM.c
+++ b/TSRM/TSRM.c
@@ -63,11 +63,7 @@ static int tsrm_error_level;
static FILE *tsrm_error_file;
#ifdef USE___THREAD
-#ifdef TSRM_WIN32
TSRM_TLS void *tsrm_ls_cache = 0;
-#else
-TSRM_API TSRM_TLS void *tsrm_ls_cache = 0;
-#endif
#endif
#ifdef PASS_TSRMLS
@@ -833,4 +829,14 @@ void tsrm_error_set(int level, char *debug_filename)
#endif
}
+TSRM_API void *get_tsrm_ls_cache(void)
+{
+ return tsrm_ls_cache;
+}
+
+TSRM_API void set_tsrm_ls_cache(void **cache)
+{
+ tsrm_ls_cache = *cache;
+}
+
#endif /* ZTS */