Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created April 11, 2012 20:54
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 bnoordhuis/bb78bfa02e5d14471619 to your computer and use it in GitHub Desktop.
Save bnoordhuis/bb78bfa02e5d14471619 to your computer and use it in GitHub Desktop.
diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc
index 273f826..8303428 100644
--- a/src/timer_wrap.cc
+++ b/src/timer_wrap.cc
@@ -22,6 +22,11 @@
#include "node.h"
#include "handle_wrap.h"
+#undef uv_ref
+#undef uv_unref
+#define uv_ref(x)
+#define uv_unref(x)
+
#define UNWRAP \
assert(!args.Holder().IsEmpty()); \
assert(args.Holder()->InternalFieldCount() > 0); \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment