Adjust thread-local local static variable syntax for MinGW/GCC.
This commit is contained in:
committed by
GitHub
parent
18fb738f80
commit
bbb7e3c5f5
@@ -687,7 +687,11 @@ unsigned int btQuickprofGetCurrentThreadIndex2()
|
|||||||
{
|
{
|
||||||
const unsigned int kNullIndex = ~0U;
|
const unsigned int kNullIndex = ~0U;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
__declspec( thread ) static unsigned int sThreadIndex = kNullIndex;
|
#if defined(__MINGW32__) || defined(__MINGW64__)
|
||||||
|
static __thread unsigned int sThreadIndex = kNullIndex;
|
||||||
|
#else
|
||||||
|
__declspec( thread ) static unsigned int sThreadIndex = kNullIndex;
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#if TARGET_OS_IPHONE
|
#if TARGET_OS_IPHONE
|
||||||
|
|||||||
Reference in New Issue
Block a user