From: Tom Lane Date: Tue, 24 Oct 2006 15:11:03 +0000 (+0000) Subject: Tweak zic.c to compile cleanly on MSVC: use CopyFile instead of X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=583306703c623ee940e38ccf7483c8f8b19e32fa;p=users%2Fbernd%2Fpostgres.git 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 --- diff --git a/src/timezone/zic.c b/src/timezone/zic.c index 23bc2a14e7..33e094486b 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -2383,7 +2383,7 @@ eitol(int i) int link(const char *oldpath, const char *newpath) { - if (!CopyFileEx(oldpath, newpath, NULL, NULL, FALSE, 0)) + if (!CopyFile(oldpath, newpath, FALSE)) return -1; return 0; }