summaryrefslogtreecommitdiff
path: root/src/if_cscope.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-25 22:07:05 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-25 22:07:05 +0000
commitdf3267e4e1872b2964c8882d9231bafff430f956 (patch)
tree0e424591efa2983c15bdefb98942b0ee4c967902 /src/if_cscope.h
parent495de9c1ae4689130e7274c3b10c9228d4e2eebd (diff)
downloadvim-git-df3267e4e1872b2964c8882d9231bafff430f956.tar.gz
updated for version 7.0044
Diffstat (limited to 'src/if_cscope.h')
-rw-r--r--src/if_cscope.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/if_cscope.h b/src/if_cscope.h
index b3149d6c6..81051284e 100644
--- a/src/if_cscope.h
+++ b/src/if_cscope.h
@@ -12,13 +12,15 @@
#if defined(FEAT_CSCOPE) || defined(PROTO)
#if defined(UNIX)
-#include <sys/types.h> /* pid_t */
-#include <sys/stat.h> /* dev_t, ino_t */
-#elif defined (WIN32)
-# ifndef WIN32_LEAN_AND_MEAN
-# define WIN32_LEAN_AND_MEAN
+# include <sys/types.h> /* pid_t */
+# include <sys/stat.h> /* dev_t, ino_t */
+#else
+# if defined (WIN32)
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN
+# endif
+# include <windows.h>
# endif
-# include <windows.h>
#endif
#define CSCOPE_SUCCESS 0
@@ -69,12 +71,14 @@ typedef struct csi {
pid_t pid; /* PID of the connected cscope process. */
dev_t st_dev; /* ID of dev containing cscope db */
ino_t st_ino; /* inode number of cscope db */
-#elif defined(WIN32)
+#else
+# if defined(WIN32)
int pid; /* Can't get pid so set it to 0 ;) */
HANDLE hProc; /* cscope process handle */
DWORD nVolume; /* Volume serial number, instead of st_dev */
DWORD nIndexHigh; /* st_ino has no meaning in the Windows */
DWORD nIndexLow;
+# endif
#endif
FILE * fr_fp; /* from cscope: FILE. */