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 <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Damien Lejay
2025-08-27 21:31:35 +02:00
committed by Christian Brabandt
parent b87f133b07
commit e7063871e5
4 changed files with 5 additions and 13 deletions

View File

@ -44,9 +44,7 @@
#include "vim.h"
#ifndef UNIX // it's in os_unix.h for Unix
# include <time.h>
#endif
#include <time.h>
#if defined(SASC) || defined(__amigaos4__)
# include <proto/dos.h> // for Open() and Close()

View File

@ -60,9 +60,7 @@
#if defined(FEAT_SPELL) || defined(PROTO)
#ifndef UNIX // it's in os_unix.h for Unix
# include <time.h> // for time_t
#endif
#include <time.h>
#define REGION_ALL 0xff // word valid in all regions

View File

@ -241,13 +241,7 @@
#if defined(FEAT_SPELL) || defined(PROTO)
#ifndef UNIX // it's in os_unix.h for Unix
# include <time.h> // for time_t
#endif
#ifndef UNIX // it's in os_unix.h for Unix
# include <time.h> // for time_t
#endif
#include <time.h> // for time_t
// Special byte values for <byte>. Some are only used in the tree for
// postponed prefixes, some only in the other trees. This is a bit messy...

View File

@ -724,6 +724,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1705,
/**/
1704,
/**/