Patch tinycthread to work with Visual Studio C11;

This commit is contained in:
bjorn 2022-03-20 01:42:31 -07:00
parent 29cbe63b1d
commit b132eaf889
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ int _tthread_timespec_get(struct timespec *ts, int base);
#endif
#elif defined(__GNUC__) && defined(__GNUC_MINOR__) && (((__GNUC__ << 8) | __GNUC_MINOR__) < ((4 << 8) | 9))
#define _Thread_local __thread
#elif defined(_MSC_VER) && (!defined(STDC_NO_THREADS) || defined(STDC_NO_THREADS) && STDC_NO_THREADS == 1)
#define _Thread_local __declspec(thread)
#endif
/* Macros */