From df3267e4e1872b2964c8882d9231bafff430f956 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 25 Jan 2005 22:07:05 +0000 Subject: updated for version 7.0044 --- src/if_cscope.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/if_cscope.h') 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 /* pid_t */ -#include /* dev_t, ino_t */ -#elif defined (WIN32) -# ifndef WIN32_LEAN_AND_MEAN -# define WIN32_LEAN_AND_MEAN +# include /* pid_t */ +# include /* dev_t, ino_t */ +#else +# if defined (WIN32) +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif +# include # endif -# include #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. */ -- cgit v1.2.1