diff --git a/src/if_cscope.c b/src/if_cscope.c index bc8ea94638..8867f63852 100644 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -13,8 +13,6 @@ #if defined(FEAT_CSCOPE) || defined(PROTO) -#include -#include #include #include #include diff --git a/src/if_tcl.c b/src/if_tcl.c index f87407d4f9..e5eee2926e 100644 --- a/src/if_tcl.c +++ b/src/if_tcl.c @@ -74,7 +74,6 @@ TODO: #endif #include -#include #include typedef struct diff --git a/src/integration.c b/src/integration.c index 8de684c073..3f38c55e5b 100644 --- a/src/integration.c +++ b/src/integration.c @@ -33,7 +33,6 @@ #include #endif -#include #include #include #include diff --git a/src/memline.c b/src/memline.c index d978b9020b..0beaf54722 100644 --- a/src/memline.c +++ b/src/memline.c @@ -52,10 +52,6 @@ # include /* for Open() and Close() */ #endif -#ifdef HAVE_ERRNO_H -# include -#endif - typedef struct block0 ZERO_BL; /* contents of the first block */ typedef struct pointer_block PTR_BL; /* contents of a pointer block */ typedef struct data_block DATA_BL; /* contents of a data block */ diff --git a/src/os_mswin.c b/src/os_mswin.c index 7dcc053696..0b9dfd91e5 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -30,7 +30,6 @@ # include #endif #include -#include #include #include #include diff --git a/src/os_win16.c b/src/os_win16.c index 66ca198ed2..c4d9cfc88a 100644 --- a/src/os_win16.c +++ b/src/os_win16.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include diff --git a/src/os_win32.c b/src/os_win32.c index dcf95ee274..30b725d4cf 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -27,7 +27,6 @@ #endif #include -#include #include #include #include diff --git a/src/version.c b/src/version.c index d3ad470920..8c51226030 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 87, /**/ 86, /**/ diff --git a/src/vim.h b/src/vim.h index 5eea08504d..15595bf038 100644 --- a/src/vim.h +++ b/src/vim.h @@ -480,6 +480,11 @@ typedef unsigned long u8char_T; /* long should be 32 bits or more */ # include #endif +#if defined(HAVE_ERRNO_H) || defined(DJGPP) || defined(WIN16) \ + || defined(WIN32) || defined(_WIN64) || defined(__EMX__) +# include +#endif + /* * Allow other (non-unix) systems to configure themselves now * These are also in os_unix.h, because osdef.sh needs them there. diff --git a/src/workshop.c b/src/workshop.c index 89f55efc7a..e0db10ec78 100644 --- a/src/workshop.c +++ b/src/workshop.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #ifdef HAVE_LIBGEN_H # include