diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-09-20 18:56:37 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-10-02 16:23:34 -0700 |
commit | a7e6d65a4864422854117149a6e98ff80e492fa9 (patch) | |
tree | f45e79512522e1584a1f4d6f2ed25755fc97eb97 /src/core/lib/iomgr/exec_ctx.h | |
parent | ac0c2d9036814b56a3f8d99d6f8cbafeed671eca (diff) |
Changes for C to C++. Adding extern C to header files for compatibility.
Diffstat (limited to 'src/core/lib/iomgr/exec_ctx.h')
-rw-r--r-- | src/core/lib/iomgr/exec_ctx.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.h b/src/core/lib/iomgr/exec_ctx.h index c89792c8c4..a93728f0a6 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -22,6 +22,10 @@ #include <grpc/support/cpu.h> #include "src/core/lib/iomgr/closure.h" +#ifdef __cplusplus +extern "C" { +#endif + /* #define GRPC_EXECUTION_CONTEXT_SANITIZER 1 */ /** A workqueue represents a list of work to be executed asynchronously. @@ -106,4 +110,8 @@ void grpc_exec_ctx_global_init(void); void grpc_exec_ctx_global_init(void); void grpc_exec_ctx_global_shutdown(void); +#ifdef __cplusplus +} +#endif + #endif /* GRPC_CORE_LIB_IOMGR_EXEC_CTX_H */ |