aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2018-09-10 15:44:48 +0300
committerEli Zaretskii2018-09-10 15:44:48 +0300
commit80ca2b81097520164e002c04a25813996d3aeb54 (patch)
treeb1d2a30a5b44c883e7f2c88e4a82252f1214c4c3 /src
parenta65fe6fbf6f05789bb69c50de7b0946adf8773ac (diff)
downloademacs-80ca2b81097520164e002c04a25813996d3aeb54.tar.gz
emacs-80ca2b81097520164e002c04a25813996d3aeb54.zip
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')
-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);
55/* Load a function address from a DLL. Cast the result via VOIDFNPTR 55/* Load a function address from a DLL. Cast the result via VOIDFNPTR
56 to pacify -Wcast-function-type in GCC 8.1. The return value must 56 to pacify -Wcast-function-type in GCC 8.1. The return value must
57 be cast to the correct function pointer type. */ 57 be cast to the correct function pointer type. */
58INLINE VOIDFNPTR get_proc_addr (HINSTANCE, LPCSTR);
58INLINE VOIDFNPTR 59INLINE VOIDFNPTR
59get_proc_addr (HINSTANCE handle, LPCSTR fname) 60get_proc_addr (HINSTANCE handle, LPCSTR fname)
60{ 61{