diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-18 23:14:13 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-18 23:14:31 -0700 |
commit | 351859238d8b72c514f6714bd0f6b4dd39941606 (patch) | |
tree | d26bfaabe3a3175fe36d8e85b51f892f73177d00 /lib | |
parent | 7ea369e5f22d6e3bcf1e55225c0ff356d9cabb2e (diff) | |
download | emacs-351859238d8b72c514f6714bd0f6b4dd39941606.tar.gz |
Update from Gnulib
This incorporates:
2018-08-18 Avoid -Wcast-function-type warnings from casts
* build-aux/config.sub, lib/gettimeofday.c: Copy from Gnulib.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gettimeofday.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c index fd44f45ca3c..1bd50fa3d36 100644 --- a/lib/gettimeofday.c +++ b/lib/gettimeofday.c @@ -33,6 +33,10 @@ #ifdef WINDOWS_NATIVE +/* Avoid warnings from gcc -Wcast-function-type. */ +# define GetProcAddress \ + (void *) GetProcAddress + /* GetSystemTimePreciseAsFileTime was introduced only in Windows 8. */ typedef void (WINAPI * GetSystemTimePreciseAsFileTimeFuncType) (FILETIME *lpTime); static GetSystemTimePreciseAsFileTimeFuncType GetSystemTimePreciseAsFileTimeFunc = NULL; |