File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 30
30
31
31
#include <sys/time.h>
32
32
33
- static void init_gettimeofday (LPFILETIME lpSystemTimeAsFileTime );
34
-
35
33
/* FILETIME of Jan 1 1970 00:00:00, the PostgreSQL epoch */
36
34
static const unsigned __int64 epoch = UINT64CONST (116444736000000000 );
37
35
@@ -49,6 +47,9 @@ static const unsigned __int64 epoch = UINT64CONST(116444736000000000);
49
47
*/
50
48
typedef VOID (WINAPI * PgGetSystemTimeFn )(LPFILETIME );
51
49
50
+ /* One-time initializer function, must match that signature. */
51
+ static void WINAPI init_gettimeofday (LPFILETIME lpSystemTimeAsFileTime );
52
+
52
53
/* Storage for the function we pick at runtime */
53
54
static PgGetSystemTimeFn pg_get_system_time = & init_gettimeofday ;
54
55
@@ -57,7 +58,7 @@ static PgGetSystemTimeFn pg_get_system_time = &init_gettimeofday;
57
58
* is available and if so, plan to use it; if not, fall back to
58
59
* GetSystemTimeAsFileTime.
59
60
*/
60
- static void
61
+ static void WINAPI
61
62
init_gettimeofday (LPFILETIME lpSystemTimeAsFileTime )
62
63
{
63
64
/*
You can’t perform that action at this time.
0 commit comments