[PATCH] w32: Fix clang compiler error with function pointer

Biswapriyo Nath nathbappai at gmail.com
Wed May 31 07:12:28 CEST 2023

> Oh, right.  Your patch actually has two changes.  You should also be
> able to also cast the pointer to "(BOOL (*)(DWORD))" without naming the
> type.  E.g.
> func = (BOOL (*)(DWORD)) GetProcAddress (handle, "AllowSetForegroundWindow");

Yeah, that would also work. I just add the type to make it little bit
more readable.

More information about the Gnupg-devel mailing list