diff options
author | 2015-05-09 07:40:27 -0700 | |
---|---|---|
committer | 2015-05-09 07:40:27 -0700 | |
commit | 47bfcc0730c19430e2f6edeff1bdcb2bb6fdf38e (patch) | |
tree | 83deceb0f5bdc53602f235133bf05ed394fa437b /include | |
parent | cc193a66661eea897a53d16b0cd4054a338f9c9b (diff) | |
parent | b5cb8d1c737e792c37efcf303bd2bb1ae43fc791 (diff) |
Merge pull request #1485 from nicolasnoble/building-win32-tests
Making the gRPC C tests building under Windows.
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/support/tls.h | 8 | ||||
-rw-r--r-- | include/grpc/support/tls_msvc.h | 2 |
2 files changed, 5 insertions, 5 deletions
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 <grpc/support/port_platform.h> /* Thread local storage. @@ -63,15 +63,15 @@ ALL functions here may be implemented as macros. */ #ifdef GPR_GCC_TLS -#include "tls_gcc.h" +#include <grpc/support/tls_gcc.h> #endif #ifdef GPR_MSVC_TLS -#include "tls_msvc.h" +#include <grpc/support/tls_msvc.h> #endif #ifdef GPR_PTHREAD_TLS -#include "tls_pthread.h" +#include <grpc/support/tls_pthread.h> #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) |