From e7063871e5b4fd7af12590b9ec330917aba32971 Mon Sep 17 00:00:00 2001 From: Damien Lejay Date: Wed, 27 Aug 2025 21:31:35 +0200 Subject: [PATCH] patch 9.1.1705: time.h include is available on all platforms Problem: time.h include is available on all platforms Solution: Remove ifdef guards and simply include it in all source files, get rid of double include in spellfile.c (Damien Lejay). closes: #18075 Signed-off-by: Damien Lejay Signed-off-by: Christian Brabandt --- src/memline.c | 4 +--- src/spell.c | 4 +--- src/spellfile.c | 8 +------- src/version.c | 2 ++ 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/memline.c b/src/memline.c index b93eb0a48e..25ecd97fcb 100644 --- a/src/memline.c +++ b/src/memline.c @@ -44,9 +44,7 @@ #include "vim.h" -#ifndef UNIX // it's in os_unix.h for Unix -# include -#endif +#include #if defined(SASC) || defined(__amigaos4__) # include // for Open() and Close() diff --git a/src/spell.c b/src/spell.c index 2281986435..80ce131e5c 100644 --- a/src/spell.c +++ b/src/spell.c @@ -60,9 +60,7 @@ #if defined(FEAT_SPELL) || defined(PROTO) -#ifndef UNIX // it's in os_unix.h for Unix -# include // for time_t -#endif +#include #define REGION_ALL 0xff // word valid in all regions diff --git a/src/spellfile.c b/src/spellfile.c index 0b9536dc16..e8a7f1af65 100644 --- a/src/spellfile.c +++ b/src/spellfile.c @@ -241,13 +241,7 @@ #if defined(FEAT_SPELL) || defined(PROTO) -#ifndef UNIX // it's in os_unix.h for Unix -# include // for time_t -#endif - -#ifndef UNIX // it's in os_unix.h for Unix -# include // for time_t -#endif +#include // for time_t // Special byte values for . Some are only used in the tree for // postponed prefixes, some only in the other trees. This is a bit messy... diff --git a/src/version.c b/src/version.c index 49f7975e6f..595c100f08 100644 --- a/src/version.c +++ b/src/version.c @@ -724,6 +724,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1705, /**/ 1704, /**/