mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
15a375b4c8
commit
36425c43c9
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue