patch 9.1.1866: HAVE_STRCSPN define is unused
Commit:
https://github.com/vim/vim/commit/3b11759c7cea5994cac4fecd328f0bb225fde838
Author: Ola Söder <
rolfk...@gmail.com>
Date: Sat Oct 18 14:04:28 2025 +0000
patch 9.1.1866: HAVE_STRCSPN define is unused
Problem: HAVE_STRCSPN define is unused
Solution: Remove all HAVE_STRCSPN defines
(Ola Söder)
closes: #18592
Signed-off-by: Ola Söder <
rolfk...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/os_amiga.h b/src/os_amiga.h
index ba1444398..af64752b0 100644
--- a/src/os_amiga.h
+++ b/src/os_amiga.h
@@ -23,7 +23,6 @@
# define HAVE_STDLIB_H
# define HAVE_STRING_H
# define HAVE_FCNTL_H
-# define HAVE_STRCSPN
# define HAVE_STRICMP
# define HAVE_STRNICMP
# define HAVE_STRFTIME // guessed
diff --git a/src/os_mac.h b/src/os_mac.h
index 6c23f4cb6..f171d7ccf 100644
--- a/src/os_mac.h
+++ b/src/os_mac.h
@@ -84,7 +84,6 @@
#ifndef HAVE_CONFIG_H
# define HAVE_STRING_H
-# define HAVE_STRCSPN
# define HAVE_MEMSET
# define USE_TMPNAM // use tmpnam() instead of mktemp()
# define HAVE_FCNTL_H
diff --git a/src/os_vms_conf.h b/src/os_vms_conf.h
index c9e75e68c..dbf9e8641 100644
--- a/src/os_vms_conf.h
+++ b/src/os_vms_conf.h
@@ -97,7 +97,6 @@
#define TGETENT_ZERO_ERR
#define HAVE_GETCWD
-#define HAVE_STRCSPN
#define HAVE_STRTOL
#define HAVE_TGETENT
#define HAVE_MEMSET
diff --git a/src/os_win32.h b/src/os_win32.h
index 26003e52e..4105a452c 100644
--- a/src/os_win32.h
+++ b/src/os_win32.h
@@ -22,7 +22,6 @@
#ifndef HAVE_MATH_H
# define HAVE_MATH_H
#endif
-#define HAVE_STRCSPN
#ifndef __GNUC__
#define HAVE_STRICMP
#define HAVE_STRNICMP
diff --git a/src/version.c b/src/version.c
index 2ef00ab81..f21097180 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1866,
/**/
1865,
/**/