com php-src: This reverts 0e5d4ea55554872fe72e5d984b73fc21abc561fe to fix the build on MacOSX: TSRM/TSRM.h

From: Date: Tue, 11 Jun 2019 13:13:27 +0000
Subject: com php-src: This reverts 0e5d4ea55554872fe72e5d984b73fc21abc561fe to fix the build on MacOSX: TSRM/TSRM.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106668@lists.php.net to get a copy of this message
Commit: 69190ce5c053a9bf97983932bd702137895b18df Author: Joe Watkins <krakjoe@php.net> Tue, 11 Jun 2019 15:13:27 +0200 Parents: 9ecc0a4f296cf5c72572e75a9734b40d941e2427 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=69190ce5c053a9bf97983932bd702137895b18df Log: This reverts 0e5d4ea55554872fe72e5d984b73fc21abc561fe to fix the build on MacOSX On Mac thread_local and __thread are not ABI compatible, in addition, thread_local comes with additional overhead, __thread seems to be the most suitable linkage to use regardless of c++/c Changed paths: M TSRM/TSRM.h Diff: diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h index 3e3e7d6..d2be318 100644 --- a/TSRM/TSRM.h +++ b/TSRM/TSRM.h @@ -159,14 +159,10 @@ TSRM_API void *tsrm_get_ls_cache(void); TSRM_API uint8_t tsrm_is_main_thread(void); TSRM_API const char *tsrm_api_name(void); -#if defined(__cplusplus) && __cplusplus > 199711L -# define TSRM_TLS thread_local +#ifdef TSRM_WIN32 +# define TSRM_TLS __declspec(thread) #else -# ifdef TSRM_WIN32 -# define TSRM_TLS __declspec(thread) -# else -# define TSRM_TLS __thread -# endif +# define TSRM_TLS __thread #endif #define TSRM_SHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)+1)

« previous php.cvs (#106668) next »