aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/wakeup_fd_cv.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-09-20 18:56:37 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-10-02 16:23:34 -0700
commita7e6d65a4864422854117149a6e98ff80e492fa9 (patch)
treef45e79512522e1584a1f4d6f2ed25755fc97eb97 /src/core/lib/iomgr/wakeup_fd_cv.h
parentac0c2d9036814b56a3f8d99d6f8cbafeed671eca (diff)
Changes for C to C++. Adding extern C to header files for compatibility.
Diffstat (limited to 'src/core/lib/iomgr/wakeup_fd_cv.h')
-rw-r--r--src/core/lib/iomgr/wakeup_fd_cv.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/wakeup_fd_cv.h b/src/core/lib/iomgr/wakeup_fd_cv.h
index dc170ad5b4..34bc42fd7f 100644
--- a/src/core/lib/iomgr/wakeup_fd_cv.h
+++ b/src/core/lib/iomgr/wakeup_fd_cv.h
@@ -40,6 +40,10 @@
#define GRPC_FD_TO_IDX(fd) (-(fd)-1)
#define GRPC_IDX_TO_FD(idx) (-(idx)-1)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct cv_node {
gpr_cv* cv;
struct cv_node* next;
@@ -62,4 +66,8 @@ typedef struct cv_fd_table {
grpc_poll_function_type poll;
} cv_fd_table;
-#endif /* GRPC_CORE_LIB_IOMGR_WAKEUP_FD_CV_H */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* GRPC_CORE_LIB_IOMGR_WAKEUP_FD_CV_H */ \ No newline at end of file