From f6424ff7c289462467a0bd852b35442431ace60f Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 27 Mar 2018 13:33:49 -0600 Subject: [PATCH] Windows: adjust DLL embedding implementation Define `__pfnDliNotifyHook2` instead of declaring it as `extern` seems to make it work in more build environments. --- racket/src/start/embedded_dll.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/racket/src/start/embedded_dll.inc b/racket/src/start/embedded_dll.inc index a68c576efc..30758eca08 100644 --- a/racket/src/start/embedded_dll.inc +++ b/racket/src/start/embedded_dll.inc @@ -10,7 +10,7 @@ typedef struct embedded_dll_entry_t { static embedded_dll_entry_t *embedded_dlls; -extern void *__pfnDliNotifyHook2; +void *__pfnDliNotifyHook2 = NULL; static FARPROC WINAPI delayHook(unsigned dliNotify, void *pdli); static HCUSTOMMODULE LoadLibraryHook(LPCSTR, void *); static FARPROC GetProcAddressHook(HCUSTOMMODULE, LPCSTR, void *);