From 2e3639302adf75c1ca0c93ada2ab875c8a9d3f37 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Mon, 4 May 2015 14:54:33 -0700 Subject: Making the gRPC C tests building under Windows. --- include/grpc/support/tls.h | 8 ++++---- include/grpc/support/tls_msvc.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/grpc/support/tls.h b/include/grpc/support/tls.h index 8dffd52255..7a7143c6d1 100644 --- a/include/grpc/support/tls.h +++ b/include/grpc/support/tls.h @@ -34,7 +34,7 @@ #ifndef GRPC_SUPPORT_TLS_H #define GRPC_SUPPORT_TLS_H -#include "port_platform.h" +#include /* Thread local storage. @@ -63,15 +63,15 @@ ALL functions here may be implemented as macros. */ #ifdef GPR_GCC_TLS -#include "tls_gcc.h" +#include #endif #ifdef GPR_MSVC_TLS -#include "tls_msvc.h" +#include #endif #ifdef GPR_PTHREAD_TLS -#include "tls_pthread.h" +#include #endif #endif diff --git a/include/grpc/support/tls_msvc.h b/include/grpc/support/tls_msvc.h index e574c11884..526aeeacdf 100644 --- a/include/grpc/support/tls_msvc.h +++ b/include/grpc/support/tls_msvc.h @@ -42,7 +42,7 @@ struct gpr_msvc_thread_local { }; #define GPR_TLS_DECL(name) \ - static __thread struct gpr_msvc_thread_local name = {0} + static __declspec(thread) struct gpr_msvc_thread_local name = {0} #define gpr_tls_init(tls) do {} while (0) #define gpr_tls_destroy(tls) do {} while (0) -- cgit v1.2.3