diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-09-20 16:54:00 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-10-02 16:22:41 -0700 |
commit | ac0c2d9036814b56a3f8d99d6f8cbafeed671eca (patch) | |
tree | ff4dd3a069145cfaf3afd479f8c6a0b112e56a54 /src/core/lib/support/arena.h | |
parent | f4f8dd768c1001959f12f5bd463907f483210376 (diff) |
Adding cplusplus ifdefs for C linkage in header files
Diffstat (limited to 'src/core/lib/support/arena.h')
-rw-r--r-- | src/core/lib/support/arena.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/lib/support/arena.h b/src/core/lib/support/arena.h index 47f0e4d16b..8a50786348 100644 --- a/src/core/lib/support/arena.h +++ b/src/core/lib/support/arena.h @@ -27,6 +27,10 @@ #include <stddef.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef struct gpr_arena gpr_arena; // Create an arena, with \a initial_size bytes in the first allocated buffer @@ -36,4 +40,8 @@ void *gpr_arena_alloc(gpr_arena *arena, size_t size); // Destroy an arena, returning the total number of bytes allocated size_t gpr_arena_destroy(gpr_arena *arena); +#ifdef __cplusplus +} +#endif + #endif /* GRPC_CORE_LIB_SUPPORT_ARENA_H */ |