glapi: keep declspec(thread) msvc-specific
gcc ignores with a warning:
glapi.h:83:1: warning: ‘thread’ attribute directive ignored [-Wattributes]
Fixes: ba141b95
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9245>
This commit is contained in:
parent
dd055f6017
commit
dfb1c986dd
|
@ -78,7 +78,7 @@ struct _glapi_table;
|
|||
|
||||
#if defined (USE_ELF_TLS)
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef _MSC_VER
|
||||
extern __declspec(thread) struct _glapi_table * _glapi_tls_Dispatch;
|
||||
extern __declspec(thread) void * _glapi_tls_Context;
|
||||
#else
|
||||
|
|
|
@ -99,7 +99,7 @@ extern void (*__glapi_noop_table[])(void);
|
|||
/*@{*/
|
||||
#if defined(USE_ELF_TLS)
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef _MSC_VER
|
||||
__declspec(thread) struct _glapi_table *u_current_table
|
||||
= (struct _glapi_table *) table_noop_array;
|
||||
__declspec(thread) void *u_current_context;
|
||||
|
|
Loading…
Reference in New Issue