diff --git a/src/core/lib/iomgr/closure.h b/src/core/lib/iomgr/closure.h index 8ecb5b3583c..8d6bdc98d84 100644 --- a/src/core/lib/iomgr/closure.h +++ b/src/core/lib/iomgr/closure.h @@ -30,10 +30,6 @@ #include "src/core/lib/profiling/timers.h" #include "src/core/lib/support/mpscq.h" -#ifdef __cplusplus -extern "C" { -#endif - struct grpc_closure; typedef struct grpc_closure grpc_closure; @@ -152,7 +148,7 @@ typedef struct { grpc_closure wrapper; } wrapped_closure; -void closure_wrapper(grpc_exec_ctx* exec_ctx, void* arg, grpc_error* error) { +inline void closure_wrapper(grpc_exec_ctx* exec_ctx, void* arg, grpc_error* error) { wrapped_closure* wc = (wrapped_closure*)arg; grpc_iomgr_cb_func cb = wc->cb; void* cb_arg = wc->cb_arg; @@ -368,8 +364,4 @@ inline void grpc_closure_list_sched(grpc_exec_ctx* exec_ctx, grpc_closure_list_sched(exec_ctx, closure_list) #endif -#ifdef __cplusplus -} -#endif - #endif /* GRPC_CORE_LIB_IOMGR_CLOSURE_H */