Skip to content

Instantly share code, notes, and snippets.

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 TooTallNate/1186849 to your computer and use it in GitHub Desktop.
Save TooTallNate/1186849 to your computer and use it in GitHub Desktop.
From 5bc0ea9f3f1bff00f1a983ea47877d1bf0b1d1f3 Mon Sep 17 00:00:00 2001
From: Nathan Rajlich <nathan@tootallnate.net>
Date: Thu, 1 Sep 2011 11:18:29 -0700
Subject: [PATCH] Don't use the NODE_MODULE macro.
What's the point of this? Seems to work fine without it! And it seems some
strange setups don't have this macro defined anyways...
---
time.cc | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/time.cc b/time.cc
index 2233648..ebec00a 100644
--- a/time.cc
+++ b/time.cc
@@ -125,9 +125,6 @@ class Time {
};
-extern "C" {
- static void init (Handle<Object> target) {
- Time::Init(target);
- }
- NODE_MODULE(time, init);
+extern "C" void init (Handle<Object> target) {
+ Time::Init(target);
}
--
1.7.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment