summaryrefslogtreecommitdiffstats
path: root/src/if_cscope.c
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2022-01-24 11:24:08 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-24 11:24:08 +0000
commitc351dc1e0ca959084ba36bb350291334bf74b9f8 (patch)
tree2f8979a19950eadb42d7d3cc61f725bd90ad33d6 /src/if_cscope.c
parent058ee7c5699ef551be5aa04c66b3cffc436e9b08 (diff)
patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not usefulv8.2.4199
Problem: MS-Windows: Support for MSVC 2003 is not useful. Solution: Remove the exceptions for MSVC 2003. (Ken Takata, closes #9616)
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r--src/if_cscope.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index ccccb518b3..9e0ec456be 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -838,11 +838,6 @@ cs_create_connection(int i)
HANDLE stdin_rd, stdout_rd;
HANDLE stdout_wr, stdin_wr;
BOOL created;
-# if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__)
-# define OPEN_OH_ARGTYPE intptr_t
-# else
-# define OPEN_OH_ARGTYPE long
-# endif
#endif
#if defined(UNIX)
@@ -1037,11 +1032,11 @@ err_closing:
CloseHandle(pi.hThread);
// TODO - tidy up after failure to create files on pipe handles.
- if (((fd = _open_osfhandle((OPEN_OH_ARGTYPE)stdin_wr,
+ if (((fd = _open_osfhandle((intptr_t)stdin_wr,
_O_TEXT|_O_APPEND)) < 0)
|| ((csinfo[i].to_fp = _fdopen(fd, "w")) == NULL))
PERROR(_("cs_create_connection: fdopen for to_fp failed"));
- if (((fd = _open_osfhandle((OPEN_OH_ARGTYPE)stdout_rd,
+ if (((fd = _open_osfhandle((intptr_t)stdout_rd,
_O_TEXT|_O_RDONLY)) < 0)
|| ((csinfo[i].fr_fp = _fdopen(fd, "r")) == NULL))
PERROR(_("cs_create_connection: fdopen for fr_fp failed"));