diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-10-12 14:20:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-10-12 14:20:24 +0200 |
commit | cea912af725c54f4727a0565e31661f6b29c6bb1 (patch) | |
tree | f48da16d68c229e22ff83fa31cc7337368875e3d /src/if_cscope.c | |
parent | a7c023ec88233a2db4c1f53121921e110ece8d43 (diff) |
patch 8.0.0029v8.0.0029
Problem: Code for MS-Windows is complicated because of the exceptions for
old systems.
Solution: Drop support for MS-Windows older than Windows XP. (Ken Takata)
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r-- | src/if_cscope.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c index cf308bc641..086c829631 100644 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -839,14 +839,10 @@ cs_create_connection(int i) HANDLE stdin_rd, stdout_rd; HANDLE stdout_wr, stdin_wr; BOOL created; -# ifdef __BORLANDC__ -# define OPEN_OH_ARGTYPE long +# if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__) +# define OPEN_OH_ARGTYPE intptr_t # else -# if (_MSC_VER >= 1300) || defined(__MINGW32__) -# define OPEN_OH_ARGTYPE intptr_t -# else -# define OPEN_OH_ARGTYPE long -# endif +# define OPEN_OH_ARGTYPE long # endif #endif @@ -1427,11 +1423,8 @@ cs_insert_filelist( #ifndef UNIX BY_HANDLE_FILE_INFORMATION bhfi; - /* On windows 9x GetFileInformationByHandle doesn't work, so skip it */ - if (!mch_windows95()) + switch (win32_fileinfo((char_u *)fname, &bhfi)) { - switch (win32_fileinfo((char_u *)fname, &bhfi)) - { case FILEINFO_ENC_FAIL: /* enc_to_utf16() failed */ case FILEINFO_READ_FAIL: /* CreateFile() failed */ if (p_csverbose) @@ -1454,7 +1447,6 @@ cs_insert_filelist( if (p_csverbose) (void)EMSG(_("E626: cannot get cscope database information")); return -1; - } } #endif @@ -1468,9 +1460,8 @@ cs_insert_filelist( /* compare pathnames first */ && ((fullpathcmp((char_u *)csinfo[j].fname, (char_u *)fname, FALSE) & FPC_SAME) - /* if not Windows 9x, test index file attributes too */ - || (!mch_windows95() - && csinfo[j].nVolume == bhfi.dwVolumeSerialNumber + /* test index file attributes too */ + || (csinfo[j].nVolume == bhfi.dwVolumeSerialNumber && csinfo[j].nIndexHigh == bhfi.nFileIndexHigh && csinfo[j].nIndexLow == bhfi.nFileIndexLow)) #endif |