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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy