We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6a2b75c commitd248a67Copy full SHA for d248a67
src/timezone/asctime.c
@@ -1,3 +1,4 @@
1
+#include"pgtz.h"
2
/*
3
** This file is in the public domain, so clarified as of
4
** 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
src/timezone/difftime.c
** June 5, 1996 by Arthur David Olson (arthur_david_olson@nih.gov).
src/timezone/localtime.c
@@ -1,3 +1,8 @@
+#undef open
+#definetimezone pg_timezone
+#defineUSG_COMPAT
5
+externtime_tpg_timezone;
6
7
8
src/timezone/zic.c
@@ -1,4 +1,11 @@
staticcharelsieid[]="@(#)zic.c7.115";
+#undef unlink
+#undef TZDIR
+#defineTZDIR "data"
+#ifdefWIN32
+#include<windows.h>
+#endif
9
10
#include"private.h"
11
#include"locale.h"
@@ -7,11 +14,13 @@ static charelsieid[] = "@(#)zic.c7.115";
14
#ifHAVE_SYS_STAT_H
15
#include"sys/stat.h"
16
#endif
17
+#ifndefWIN32
18
#ifdefS_IRUSR
19
#defineMKDIR_UMASK (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)
12
20
#else
13
21
#defineMKDIR_UMASK 0755
22
23
24
25
26
** On some ancient hosts, predicates like `isspace(C)' are defined
@@ -2234,3 +2243,16 @@ const inti;
2234
2243
2235
2244
** UNIX was a registered trademark of The Open Group in 2003.
2236
2245
*/
2246
+
2247
2248
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