Commit 80ca2b81 authored by Eli Zaretskii's avatar Eli Zaretskii

Avoid compiler warnings due to get_proc_addr

* src/w32common.h (get_proc_addr): Add prototype, to shut up
GCC compilation warning.  Reported by Martin Rudalics
<rudalics@gmx.at>.
parent a65fe6fb
......@@ -55,6 +55,7 @@ typedef void (* VOIDFNPTR) (void);
/* Load a function address from a DLL. Cast the result via VOIDFNPTR
to pacify -Wcast-function-type in GCC 8.1. The return value must
be cast to the correct function pointer type. */
INLINE VOIDFNPTR get_proc_addr (HINSTANCE, LPCSTR);
INLINE VOIDFNPTR
get_proc_addr (HINSTANCE handle, LPCSTR fname)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment