File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3030
3131#include <sys/time.h>
3232
33- static void init_gettimeofday (LPFILETIME lpSystemTimeAsFileTime );
34-
3533/* FILETIME of Jan 1 1970 00:00:00, the PostgreSQL epoch */
3634static const unsigned __int64 epoch = UINT64CONST (116444736000000000 );
3735
@@ -49,6 +47,9 @@ static const unsigned __int64 epoch = UINT64CONST(116444736000000000);
4947 */
5048typedef VOID (WINAPI * PgGetSystemTimeFn )(LPFILETIME );
5149
50+ /* One-time initializer function, must match that signature. */
51+ static void WINAPI init_gettimeofday (LPFILETIME lpSystemTimeAsFileTime );
52+
5253/* Storage for the function we pick at runtime */
5354static PgGetSystemTimeFn pg_get_system_time = & init_gettimeofday ;
5455
@@ -57,7 +58,7 @@ static PgGetSystemTimeFn pg_get_system_time = &init_gettimeofday;
5758 * is available and if so, plan to use it; if not, fall back to
5859 * GetSystemTimeAsFileTime.
5960 */
60- static void
61+ static void WINAPI
6162init_gettimeofday (LPFILETIME lpSystemTimeAsFileTime )
6263{
6364 /*
You can’t perform that action at this time.
0 commit comments