diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-01-15 12:50:01 +0100 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-01-17 15:37:20 -0800 |
commit | cda41f8775e6ad06ca4a500501b1d8712f412893 (patch) | |
tree | cbc144ac0119e76cd5a6435a06e262accda4d61a /src/node.h | |
parent | db5abd726f648cae9edf26cc02fc0e34e4064391 (diff) | |
download | android-node-v8-cda41f8775e6ad06ca4a500501b1d8712f412893.tar.gz android-node-v8-cda41f8775e6ad06ca4a500501b1d8712f412893.tar.bz2 android-node-v8-cda41f8775e6ad06ca4a500501b1d8712f412893.zip |
src: don't mark addon_register_func as dllimport
addon_register_func and its cousin addon_context_register_func are type
definitions, dllimport and dllexport are name mangling directives, i.e.
they're quite unrelated concepts. MinGW complains about mixing them
when cross-compiling native add-ons.
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
Signed-off-by: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node.h b/src/node.h index 91597c0327..8c08ab6c2d 100644 --- a/src/node.h +++ b/src/node.h @@ -203,11 +203,11 @@ NODE_EXTERN v8::Local<v8::Value> WinapiErrnoException(int errorno, const char *signo_string(int errorno); -NODE_EXTERN typedef void (*addon_register_func)( +typedef void (*addon_register_func)( v8::Handle<v8::Object> exports, v8::Handle<v8::Value> module); -NODE_EXTERN typedef void (*addon_context_register_func)( +typedef void (*addon_context_register_func)( v8::Handle<v8::Object> exports, v8::Handle<v8::Value> module, v8::Handle<v8::Context> context); |