Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
From efb8681262b563896c03c57660e7d4a8d6798208 Mon Sep 17 00:00:00 2001
From: isaacs <i@izs.me>
Date: Tue, 19 Jun 2012 13:12:04 -0700
Subject: [PATCH] ev-emul: Namespace ev shim defines
---
src/ev-emul.h | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/ev-emul.h b/src/ev-emul.h
index ee85db1..051a9ec 100644
--- a/src/ev-emul.h
+++ b/src/ev-emul.h
@@ -229,21 +229,21 @@ inline static void __ev_unref(void) {
}
-#define ev_io __ev_io
-#define ev_io_init __ev_io_init
-#define ev_io_set __ev_io_set
-#define ev_io_start __ev_io_start
-#define ev_io_stop __ev_io_stop
-
-#define ev_timer __ev_timer
-#define ev_timer_init __ev_timer_init
-#define ev_timer_set __ev_timer_set
-#define ev_timer_start __ev_timer_start
-#define ev_timer_stop __ev_timer_stop
-#define ev_timer_again __ev_timer_again
-
-#define ev_ref __ev_ref
-#define ev_unref __ev_unref
+#define ev_io node::__ev_io
+#define ev_io_init node::__ev_io_init
+#define ev_io_set node::__ev_io_set
+#define ev_io_start node::__ev_io_start
+#define ev_io_stop node::__ev_io_stop
+
+#define ev_timer node::__ev_timer
+#define ev_timer_init node::__ev_timer_init
+#define ev_timer_set node::__ev_timer_set
+#define ev_timer_start node::__ev_timer_start
+#define ev_timer_stop node::__ev_timer_stop
+#define ev_timer_again node::__ev_timer_again
+
+#define ev_ref node::__ev_ref
+#define ev_unref node::__ev_unref
#undef __uv_container_of
#undef __uv_warn_of
--
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.