summaryrefslogtreecommitdiff
path: root/deps/npm
diff options
context:
space:
mode:
authorSharat M R <cosmosgenius@gmail.com>2015-04-27 05:25:33 +0530
committerBert Belder <bertbelder@gmail.com>2015-05-18 19:50:39 -0700
commit0d6d3dda95e3fff30996c224197fac88fba85b5b (patch)
tree26ddfa1f598d51e1c783e25cdfb5b25d62155f8a /deps/npm
parentc1de6d249e9b17d53edc0a713c1e43ef9b457ea7 (diff)
downloadnodejs-0d6d3dda95e3fff30996c224197fac88fba85b5b.tar.gz
nodejs-0d6d3dda95e3fff30996c224197fac88fba85b5b.tar.bz2
nodejs-0d6d3dda95e3fff30996c224197fac88fba85b5b.zip
win,node-gyp: make delay-load hook C89 compliant
This fixes building compiled addons with Visual Studio 2010. PR-URL: https://github.com/TooTallNate/node-gyp/pull/616 Reviewed-By: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'deps/npm')
-rw-r--r--deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c b/deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c
index 05c4c3988..f397cfa19 100644
--- a/deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c
+++ b/deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c
@@ -16,6 +16,7 @@
#include <string.h>
static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
+ HMODULE m;
if (event != dliNotePreLoadLibrary)
return NULL;
@@ -23,7 +24,7 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
_stricmp(info->szDll, "node.exe") != 0)
return NULL;
- HMODULE m = GetModuleHandle(NULL);
+ m = GetModuleHandle(NULL);
return (FARPROC) m;
}