glapi: Never use dllimport/dllexport for TLS vars on Windows

Fixes: c691149f ("win32: Fixes thread local on win32 with clang/mingw")
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14162>
This commit is contained in:
Jesse Natalie 2021-12-10 16:54:08 -08:00 committed by Marge Bot
parent 15a375b4c8
commit 36425c43c9

View file

@ -46,6 +46,7 @@
#include "util/macros.h"
#include "util/u_thread.h"
#include "util/detect_os.h"
#ifdef __cplusplus
@ -79,7 +80,7 @@ struct _glapi_table;
#if defined (USE_ELF_TLS)
#if defined(USE_TLS_BEHIND_FUNCTIONS)
#if DETECT_OS_WINDOWS
extern __THREAD_INITIAL_EXEC struct _glapi_table * _glapi_tls_Dispatch;
extern __THREAD_INITIAL_EXEC void * _glapi_tls_Context;
#else