Created
September 1, 2011 18:20
-
-
Save TooTallNate/1186849 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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