Fix compile error on MinGW.

I'm not sure this is actually the correct thing to do. Why is there an
extra const?
This commit is contained in:
Austin Wise 2021-12-12 22:24:32 -08:00
parent 7712ad6e0f
commit 71b8d01f4f
1 changed files with 6 additions and 1 deletions

View File

@ -3208,7 +3208,12 @@ FARPROC WINAPI dllDelayLoadHook(unsigned dliNotify, PDelayLoadInfo pdli)
return NULL;
}
const PfnDliHook __pfnDliNotifyHook2 = dllDelayLoadHook;
#ifdef _MSC_VER
// For some reason the Windows SDK headers have a `const` while MinGW does not.
const
#endif
PfnDliHook __pfnDliNotifyHook2 = dllDelayLoadHook;
/*
* Application Entrypoint