Skip to content

Commit

Permalink
Add NODE_MODULE statement and change dash to underscore
Browse files Browse the repository at this point in the history
This fixes the module for Node.js 0.9.x and above.
  • Loading branch information
tchollingsworth authored and jamielinux committed Mar 17, 2013
1 parent 0cf6a77 commit c06f272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
'targets': [
{
'target_name': 'node-stringprep',
'target_name': 'node_stringprep',
'sources': [ 'node-stringprep.cc' ],
'cflags!': [ '-fno-exceptions', '`icu-config --cppflags`' ],
'cflags_cc!': [ '-fno-exceptions' ],
Expand Down
1 change: 1 addition & 0 deletions node-stringprep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,4 @@ extern "C" void init(Handle<Object> target)
NODE_SET_METHOD(target, "toUnicode", ToUnicode);
}

NODE_MODULE(node_stringprep, init)

0 comments on commit c06f272

Please sign in to comment.