Skip to content

Commit

Permalink
win: work around __pfnDliNotifyHook2 type change
Browse files Browse the repository at this point in the history
Visual Studio 2015 Update 3 defines __pfnDliNotifyHook2 as const.

Fixes: #949
  • Loading branch information
orangemocha committed Jun 9, 2016
1 parent 3df8222 commit e0b03ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win_delay_load_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
return (FARPROC) m;
}

PfnDliHook __pfnDliNotifyHook2 = load_exe_hook;
decltype(__pfnDliNotifyHook2) __pfnDliNotifyHook2 = load_exe_hook;

#endif

0 comments on commit e0b03ab

Please sign in to comment.