aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/support
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-09-21 12:57:30 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-10-02 16:23:34 -0700
commit53a47f09e2fe9755608eac9308a90d232fb1551f (patch)
treee0d723a311d5467d327a7f7ca1daebd79b8c4fea /include/grpc/support
parenta7e6d65a4864422854117149a6e98ff80e492fa9 (diff)
Changes for C to C++. Adding extern C to header files for compatibility.
Diffstat (limited to 'include/grpc/support')
-rw-r--r--include/grpc/support/avl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc/support/avl.h b/include/grpc/support/avl.h
index d53ff5d904..d8a5efd2ad 100644
--- a/include/grpc/support/avl.h
+++ b/include/grpc/support/avl.h
@@ -21,6 +21,10 @@
#include <grpc/support/sync.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** internal node of an AVL tree */
typedef struct gpr_avl_node {
gpr_refcount refs;
@@ -91,4 +95,8 @@ GPRAPI int gpr_avl_maybe_get(gpr_avl avl, void *key, void **value,
/** Return 1 if avl is empty, 0 otherwise */
GPRAPI int gpr_avl_is_empty(gpr_avl avl);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* GRPC_SUPPORT_AVL_H */