summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-08-18 23:14:13 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-08-18 23:14:31 -0700
commit351859238d8b72c514f6714bd0f6b4dd39941606 (patch)
treed26bfaabe3a3175fe36d8e85b51f892f73177d00 /lib
parent7ea369e5f22d6e3bcf1e55225c0ff356d9cabb2e (diff)
downloademacs-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.c4
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;