Skip to content
Myr

stbi: use __thread if GCC can't use _Thread_local

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Recep Aslantas · committed by Recep Aslantas · parent 8cb9835 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:stb_image.h+6 added
579 unmodified lines
580 #define STBI_THREAD_LOCAL __declspec(thread)581 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__)582 #define STBI_THREAD_LOCAL _Thread_local583 #endif584585 #ifndef STBI_THREAD_LOCAL586 #if defined(__GNUC__)587 #define STBI_THREAD_LOCAL __thread588 #endif589 #endif590#endif591592#ifdef _MSC_VER593typedef unsigned short stbi__uint16;
7069 unmodified lines