Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created June 19, 2012 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/2956323 to your computer and use it in GitHub Desktop.
Save isaacs/2956323 to your computer and use it in GitHub Desktop.
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