diff options
author | Michel Zou <xantares09@hotmail.com> | 2021-02-24 06:05:18 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2021-02-24 13:47:30 +0000 |
commit | dfb1c986dd06ae2db72e2010385896bb61cf972b (patch) | |
tree | a1de0b20fc174fef82a6b4ccd9e8c25cbe6f6f88 /src/mapi | |
parent | dd055f6017ceb576e9b4cac23eb1d507adf49b99 (diff) |
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>
Diffstat (limited to 'src/mapi')
-rw-r--r-- | src/mapi/glapi/glapi.h | 2 | ||||
-rw-r--r-- | src/mapi/u_current.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mapi/glapi/glapi.h b/src/mapi/glapi/glapi.h index da3d4524931..d6a0ebfcf8a 100644 --- a/src/mapi/glapi/glapi.h +++ b/src/mapi/glapi/glapi.h @@ -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 diff --git a/src/mapi/u_current.c b/src/mapi/u_current.c index 0a749ec87d2..6904167f7d0 100644 --- a/src/mapi/u_current.c +++ b/src/mapi/u_current.c @@ -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; |