Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
From 89ff4bb7dd79d826d2a808195f5de1cf339b5114 Mon Sep 17 00:00:00 2001
From: Ben Noordhuis <info@bnoordhuis.nl>
Date: Tue, 19 Jun 2012 13:22:51 -0700
Subject: [PATCH] ev-emul: Wrap in extern C
---
src/ev-emul.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/ev-emul.h b/src/ev-emul.h
index ee85db1..4355b4e 100644
--- a/src/ev-emul.h
+++ b/src/ev-emul.h
@@ -30,6 +30,10 @@
#include <stdint.h>
#include <string.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#undef ev_init
#undef ev_set_cb
#undef ev_set_priority
@@ -248,4 +252,8 @@ inline static void __ev_unref(void) {
#undef __uv_container_of
#undef __uv_warn_of
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NODE_EV_EMUL_H_ */
--
1.7.5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.