Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9fd554

Browse files
committed
Try to fix busted gettimeofday() code.
Per buildfarm, we have to match the _stdcall property of the systemfunctions.
1 parent332f02f commite9fd554

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/port/gettimeofday.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030

3131
#include<sys/time.h>
3232

33-
staticvoidinit_gettimeofday(LPFILETIMElpSystemTimeAsFileTime);
34-
3533
/* FILETIME of Jan 1 1970 00:00:00, the PostgreSQL epoch */
3634
staticconstunsigned__int64epoch=UINT64CONST(116444736000000000);
3735

@@ -49,6 +47,9 @@ static const unsigned __int64 epoch = UINT64CONST(116444736000000000);
4947
*/
5048
typedefVOID (WINAPI*PgGetSystemTimeFn)(LPFILETIME);
5149

50+
/* One-time initializer function, must match that signature. */
51+
staticvoidWINAPIinit_gettimeofday(LPFILETIMElpSystemTimeAsFileTime);
52+
5253
/* Storage for the function we pick at runtime */
5354
staticPgGetSystemTimeFnpg_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-
staticvoid
61+
staticvoidWINAPI
6162
init_gettimeofday(LPFILETIMElpSystemTimeAsFileTime)
6263
{
6364
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp