diff src/if_cscope.h @ 132:d6009de12681

updated for version 7.0044
author vimboss
date Tue, 25 Jan 2005 22:07:05 +0000
parents 3fc0f57ecb91
children 72aefd4c1e0d
line wrap: on
line diff
--- 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. */