diff options
| author | Eli Zaretskii | 2018-09-10 15:44:48 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-09-10 15:44:48 +0300 |
| commit | 80ca2b81097520164e002c04a25813996d3aeb54 (patch) | |
| tree | b1d2a30a5b44c883e7f2c88e4a82252f1214c4c3 /src | |
| parent | a65fe6fbf6f05789bb69c50de7b0946adf8773ac (diff) | |
| download | emacs-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.h | 1 |
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. */ |
| 58 | INLINE VOIDFNPTR get_proc_addr (HINSTANCE, LPCSTR); | ||
| 58 | INLINE VOIDFNPTR | 59 | INLINE VOIDFNPTR |
| 59 | get_proc_addr (HINSTANCE handle, LPCSTR fname) | 60 | get_proc_addr (HINSTANCE handle, LPCSTR fname) |
| 60 | { | 61 | { |