Commit b21ecd7a1cfbe88288e2cbb91ae305321a62e284

Authored by Perry Werneck
1 parent 039767d5
Exists in master and in 1 other branch develop

Fixing mingw build.

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
client/src/core/windows/dynamic/init.cc
... ... @@ -59,8 +59,13 @@
59 59  
60 60 // https://docs.microsoft.com/en-us/cpp/build/reference/loading-all-imports-for-a-delay-loaded-dll?view=vs-2019
61 61  
  62 +#if defined(_MSC_VER)
62 63 const PfnDliHook __pfnDliNotifyHook2 = IPC3270_DelayLoadHook;
63 64 const PfnDliHook __pfnDliFailureHook2 = IPC3270_DelayLoadHook;
  65 +#else
  66 + PfnDliHook __pfnDliNotifyHook2 = IPC3270_DelayLoadHook;
  67 + PfnDliHook __pfnDliFailureHook2 = IPC3270_DelayLoadHook;
  68 +#endif // _MSC_VER
64 69  
65 70 static HANDLE hModule = 0;
66 71 static HANDLE hEventLog = 0;
... ...