diff options
author | Tom Lane | 2006-10-24 15:11:03 +0000 |
---|---|---|
committer | Tom Lane | 2006-10-24 15:11:03 +0000 |
commit | 583306703c623ee940e38ccf7483c8f8b19e32fa (patch) | |
tree | 2b5f6ee64952c6a6bdbbda1ee5e52850863c382b | |
parent | dbccc350e82f69df031f9c1dacc62067b9da55e9 (diff) |
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
-rw-r--r-- | src/timezone/zic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |