diff options
Diffstat (limited to 'src/if_cscope.h')
-rw-r--r-- | src/if_cscope.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/if_cscope.h b/src/if_cscope.h index b3149d6c6c..81051284e1 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. */ |