diff options
author | Sharat M R <cosmosgenius@gmail.com> | 2015-04-27 05:25:33 +0530 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2015-05-18 19:50:39 -0700 |
commit | 0d6d3dda95e3fff30996c224197fac88fba85b5b (patch) | |
tree | 26ddfa1f598d51e1c783e25cdfb5b25d62155f8a /deps/npm | |
parent | c1de6d249e9b17d53edc0a713c1e43ef9b457ea7 (diff) | |
download | nodejs-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.c | 3 |
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; } |