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

Commitd248a67

Browse files
committed
Timezone library changes to map into our backend code.
1 parent6a2b75c commitd248a67

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

‎src/timezone/asctime.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include"pgtz.h"
12
/*
23
** This file is in the public domain, so clarified as of
34
** 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).

‎src/timezone/difftime.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include"pgtz.h"
12
/*
23
** This file is in the public domain, so clarified as of
34
** June 5, 1996 by Arthur David Olson (arthur_david_olson@nih.gov).

‎src/timezone/localtime.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#include"pgtz.h"
2+
#undef open
3+
#definetimezone pg_timezone
4+
#defineUSG_COMPAT
5+
externtime_tpg_timezone;
16
/*
27
** This file is in the public domain, so clarified as of
38
** 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).

‎src/timezone/zic.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
staticcharelsieid[]="@(#)zic.c7.115";
2+
#include"pgtz.h"
3+
#undef unlink
4+
#undef TZDIR
5+
#defineTZDIR "data"
6+
#ifdefWIN32
7+
#include<windows.h>
8+
#endif
29

310
#include"private.h"
411
#include"locale.h"
@@ -7,11 +14,13 @@ static charelsieid[] = "@(#)zic.c7.115";
714
#ifHAVE_SYS_STAT_H
815
#include"sys/stat.h"
916
#endif
17+
#ifndefWIN32
1018
#ifdefS_IRUSR
1119
#defineMKDIR_UMASK (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)
1220
#else
1321
#defineMKDIR_UMASK 0755
1422
#endif
23+
#endif
1524

1625
/*
1726
** On some ancient hosts, predicates like `isspace(C)' are defined
@@ -2234,3 +2243,16 @@ const inti;
22342243
/*
22352244
** UNIX was a registered trademark of The Open Group in 2003.
22362245
*/
2246+
2247+
2248+
#ifdefWIN32
2249+
/*
2250+
* To run on win32
2251+
*/
2252+
intlink(constchar*oldpath,constchar*newpath) {
2253+
if (!CopyFileEx(oldpath,newpath,NULL,NULL, FALSE,0)) {
2254+
return-1;
2255+
}
2256+
return0;
2257+
}
2258+
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp