Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d8221df

Browse files
committed
Tweak zic.c to compile cleanly on MSVC: use CopyFile instead of
CopyFileEx. This avoids a warning about the function not being present on older Windows versions. Magnus Hagander
1 parent 9601745 commit d8221df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/timezone/zic.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
44
*
55
* IDENTIFICATION
6-
* $PostgreSQL: pgsql/src/timezone/zic.c,v 1.18 2006/10/19 20:38:48 tgl Exp $
6+
* $PostgreSQL: pgsql/src/timezone/zic.c,v 1.19 2006/10/24 15:11:03 tgl Exp $
77
*/
88

99
#include "postgres.h"
@@ -2383,7 +2383,7 @@ eitol(int i)
23832383
int
23842384
link(const char *oldpath, const char *newpath)
23852385
{
2386-
if (!CopyFileEx(oldpath, newpath, NULL, NULL, FALSE, 0))
2386+
if (!CopyFile(oldpath, newpath, FALSE))
23872387
return -1;
23882388
return 0;
23892389
}

0 commit comments

Comments
 (0)