Add an extra flag so we can force stuff external stuff to build without direct TLS references

This commit is contained in:
K. Lange 2021-04-09 21:45:13 +09:00
parent 744946f14b
commit 20eb921c55
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ typedef struct KrkVM {
*
* See @c KrkThreadState for more information.
*/
#if defined(_WIN32) && !defined(KRKINLIB)
#if (defined(_WIN32) && !defined(KRKINLIB)) || defined(KRK_MEDIOCRE_TLS)
#define krk_currentThread (*krk_getCurrentThread())
#else
extern threadLocal KrkThreadState krk_currentThread;