mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
vars with __declspec(thread) cannot use __declspec(dllexport)
This commit is contained in:
parent
aa339d00d8
commit
2720743636
2 changed files with 8 additions and 0 deletions
|
@ -63,8 +63,12 @@ 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
|
||||
# define CALL_TSRMG_CTOR(ctor, globale, storage) (ctor)((globale), (storage))
|
||||
|
|
|
@ -109,7 +109,11 @@ extern "C" {
|
|||
# define TSRM_TLS __thread
|
||||
# endif
|
||||
|
||||
#ifdef TSRM_WIN32
|
||||
extern TSRM_TLS void *tsrm_ls_cache;
|
||||
#else
|
||||
TSRM_API extern TSRM_TLS void *tsrm_ls_cache;
|
||||
#endif
|
||||
|
||||
#define TSRMG(id, type, element) \
|
||||
((type)((tsrm_uintptr_t)tsrm_ls_cache + id##_offset))->element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue