Tweak zic.c to compile cleanly on MSVC: use CopyFile instead of
authorTom Lane <[email protected]>
Tue, 24 Oct 2006 15:11:03 +0000 (15:11 +0000)
committerTom Lane <[email protected]>
Tue, 24 Oct 2006 15:11:03 +0000 (15:11 +0000)
CopyFileEx.  This avoids a warning about the function not being
present on older Windows versions.  Magnus Hagander

src/timezone/zic.c

index 23bc2a14e72823ad740ddb81df51b894c873d216..33e094486bed4b5778af4c124a1406e7c8e8929b 100644 (file)
@@ -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;
 }