aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-06-08 18:44:05 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-06-08 18:45:23 -0700
commitbea67927f785b0d5024757c02881b6ecc0416a02 (patch)
tree5335635fd6e70f290fd5fb78a9ef44dc2dd23df4 /include
parenteb0bf61bd265e699782f456ac31be0360a3de40e (diff)
Added braces to "extern C".
Diffstat (limited to 'include')
-rw-r--r--include/grpc/support/tls_pthread.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/grpc/support/tls_pthread.h b/include/grpc/support/tls_pthread.h
index 7c42d08bfe..c18f247af9 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