diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-02-21 17:15:13 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-02-21 17:15:13 -0500 |
commit | e9fd5545de3bb4efe163af4a9c957badac86ccd7 (patch) | |
tree | e620b6a46721e9dd4827ccce877b1a8363aa0eca /src | |
parent | 332f02f88beead6365bc2126c95451520bbfe163 (diff) | |
download | postgresql-e9fd5545de3bb4efe163af4a9c957badac86ccd7.tar.gz postgresql-e9fd5545de3bb4efe163af4a9c957badac86ccd7.zip |
Try to fix busted gettimeofday() code.
Per buildfarm, we have to match the _stdcall property of the system
functions.
Diffstat (limited to 'src')
-rw-r--r-- | src/port/gettimeofday.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/port/gettimeofday.c b/src/port/gettimeofday.c index c700d997c9c..3c602385188 100644 --- a/src/port/gettimeofday.c +++ b/src/port/gettimeofday.c @@ -30,8 +30,6 @@ #include <sys/time.h> -static void init_gettimeofday(LPFILETIME lpSystemTimeAsFileTime); - /* FILETIME of Jan 1 1970 00:00:00, the PostgreSQL epoch */ static const unsigned __int64 epoch = UINT64CONST(116444736000000000); @@ -49,6 +47,9 @@ static const unsigned __int64 epoch = UINT64CONST(116444736000000000); */ typedef VOID (WINAPI *PgGetSystemTimeFn)(LPFILETIME); +/* One-time initializer function, must match that signature. */ +static void WINAPI init_gettimeofday(LPFILETIME lpSystemTimeAsFileTime); + /* Storage for the function we pick at runtime */ static PgGetSystemTimeFn pg_get_system_time = &init_gettimeofday; @@ -57,7 +58,7 @@ static PgGetSystemTimeFn pg_get_system_time = &init_gettimeofday; * is available and if so, plan to use it; if not, fall back to * GetSystemTimeAsFileTime. */ -static void +static void WINAPI init_gettimeofday(LPFILETIME lpSystemTimeAsFileTime) { /* |