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:
Michel Zou 2021-02-24 06:05:18 +01:00 committed by Jose Fonseca
parent dd055f6017
commit dfb1c986dd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;