From cda41f8775e6ad06ca4a500501b1d8712f412893 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 15 Jan 2014 12:50:01 +0100 Subject: [PATCH] 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 Signed-off-by: Bert Belder --- src/node.h | 4 ++-- 1 file 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 WinapiErrnoException(int errorno, const char *signo_string(int errorno); -NODE_EXTERN typedef void (*addon_register_func)( +typedef void (*addon_register_func)( v8::Handle exports, v8::Handle module); -NODE_EXTERN typedef void (*addon_context_register_func)( +typedef void (*addon_context_register_func)( v8::Handle exports, v8::Handle module, v8::Handle context);