diff options
author | Yuxuan Li <yuxuanli@google.com> | 2017-05-15 16:53:01 -0700 |
---|---|---|
committer | Yuxuan Li <yuxuanli@google.com> | 2017-05-15 16:53:01 -0700 |
commit | 8698f2bbee0ce2589eb04c4160bc4ca848af112b (patch) | |
tree | 4b28da415e11bc2fdd7849a8d855bbd5d5fc02a4 /src/core/lib/surface | |
parent | 02d635bf88e2af6489851ec57c3b06ce9713b1c5 (diff) |
fix extern c location
Diffstat (limited to 'src/core/lib/surface')
-rw-r--r-- | src/core/lib/surface/completion_queue.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/lib/surface/completion_queue.h b/src/core/lib/surface/completion_queue.h index 7420ea1f3d..7963ea75e7 100644 --- a/src/core/lib/surface/completion_queue.h +++ b/src/core/lib/surface/completion_queue.h @@ -49,6 +49,10 @@ extern grpc_tracer_flag grpc_trace_operation_failures; extern grpc_tracer_flag grpc_trace_pending_tags; #endif +#ifdef __cplusplus +extern "C" { +#endif + typedef struct grpc_cq_completion { gpr_mpscq_node node; @@ -108,4 +112,8 @@ int grpc_get_cq_poll_num(grpc_completion_queue *cc); grpc_completion_queue *grpc_completion_queue_create_internal( grpc_cq_completion_type completion_type, grpc_cq_polling_type polling_type); +#ifdef __cplusplus +} +#endif + #endif /* GRPC_CORE_LIB_SURFACE_COMPLETION_QUEUE_H */ |