Hello,

Building on Windows using MSYS2 mingw32 resulted in the following error.

wget.c:304:31: error: passing argument 1 of 'SetConsoleCtrlHandler' from
incompatible pointer type [-Wincompatible-pointer-types]

  304 |         SetConsoleCtrlHandler(HandleCtrlEvent, TRUE);

      |                               ^~~~~~~~~~~~~~~

      |                               |

      |                               BOOL (*)(DWORD) {aka int (*)(long
unsigned int)}


 I applied the following fix to successfully complete the build.

< static BOOL HandleCtrlEvent(DWORD dwCtrlType) {

---

> static BOOL WINAPI HandleCtrlEvent(DWORD dwCtrlType) {


Just a quick update.

Best regards,

Reiji

Reply via email to