summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-05-05 16:41:24 +0200
committerBram Moolenaar <Bram@vim.org>2011-05-05 16:41:24 +0200
commit1c32dff7d6b4cf00d1e63ac79968e9deb8b90e2e (patch)
tree2d78aad10e6cfc81acfcac846501a99d719933d5 /src/vim.h
parent85de20665f3ed48345b79cd0920af41397544141 (diff)
updated for version 7.3.172v7.3.172
Problem: MS-Windows: rename() might delete the file if the name differs but it's actually the same file. Solution: Use the file handle to check if it's the same file. (Yukihiro Nakadaira)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index 95260a221f..229e6dc41f 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2217,4 +2217,10 @@ typedef int VimClipboard; /* This is required for the prototypes. */
#define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */
#define KEYLEN_REMOVED 9999 /* keylen value for removed sequence */
+/* Return values from win32_fileinfo(). */
+#define FILEINFO_OK 0
+#define FILEINFO_ENC_FAIL 1 /* enc_to_utf16() failed */
+#define FILEINFO_READ_FAIL 2 /* CreateFile() failed */
+#define FILEINFO_INFO_FAIL 3 /* GetFileInformationByHandle() failed */
+
#endif /* VIM__H */