summaryrefslogtreecommitdiff
path: root/src/w32common.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2018-09-10 15:44:48 +0300
committerEli Zaretskii <eliz@gnu.org>2018-09-10 15:44:48 +0300
commit80ca2b81097520164e002c04a25813996d3aeb54 (patch)
treeb1d2a30a5b44c883e7f2c88e4a82252f1214c4c3 /src/w32common.h
parenta65fe6fbf6f05789bb69c50de7b0946adf8773ac (diff)
downloademacs-80ca2b81097520164e002c04a25813996d3aeb54.tar.gz
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>.
Diffstat (limited to 'src/w32common.h')
-rw-r--r--src/w32common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/w32common.h b/src/w32common.h
index 4981bdfd89a..e860dbce032 100644
--- a/src/w32common.h
+++ b/src/w32common.h
@@ -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)
{