bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gettimeofday.c windows version?


From: Roger Pack
Subject: gettimeofday.c windows version?
Date: Sat, 10 Dec 2022 23:01:50 -0700

I received some complaints saying in mingw it was"requiring windows 8" for a certain library.

"Entry point not found, GetSystemTimePreciseAsFileTime could not be located in the dynamic link library KERNEL32.dll".

mingw appears to have the following:

#define _WIN32_WINNT 0x502
#define _WIN32_WINNT_WIN8 0x0602

Perhaps the following patch?  Thanks! :)

diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c
index 36c7920af..428cc4f30 100644
--- a/lib/gettimeofday.c
+++ b/lib/gettimeofday.c
@@ -35,7 +35,7 @@
 # undef LoadLibrary
 # define LoadLibrary LoadLibraryA

-# if !(_WIN32_WINNT >= _WIN32_WINNT_WIN8)
+# if (_WIN32_WINNT >= _WIN32_WINNT_WIN8)

 /* Avoid warnings from gcc -Wcast-function-type.  */
 #  define GetProcAddress \

reply via email to

[Prev in Thread] Current Thread [Next in Thread]