From bea67927f785b0d5024757c02881b6ecc0416a02 Mon Sep 17 00:00:00 2001 From: David Garcia Quintas Date: Mon, 8 Jun 2015 18:44:05 -0700 Subject: [PATCH] Added braces to "extern C". --- include/grpc/support/tls_pthread.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/grpc/support/tls_pthread.h b/include/grpc/support/tls_pthread.h index 7c42d08bfed0b..c18f247af9a8f 100644 --- a/include/grpc/support/tls_pthread.h +++ b/include/grpc/support/tls_pthread.h @@ -49,10 +49,13 @@ struct gpr_pthread_thread_local { #define gpr_tls_init(tls) GPR_ASSERT(0 == pthread_key_create(&(tls)->key, NULL)) #define gpr_tls_destroy(tls) pthread_key_delete((tls)->key) +#define gpr_tls_get(tls) ((gpr_intptr)pthread_getspecific((tls)->key)) #ifdef __cplusplus -extern "C" +extern "C" { #endif gpr_intptr gpr_tls_set(struct gpr_pthread_thread_local *tls, gpr_intptr value); -#define gpr_tls_get(tls) ((gpr_intptr)pthread_getspecific((tls)->key)) +#ifdef __cplusplus +} +#endif #endif