summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-02 07:15:28 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-02 07:15:28 +0100
commit6ef8f9eacdf9185d9bd03613c0a0de40ea5e3f07 (patch)
tree7348bfa7e05b8763bb27e8e583b2b13bfeb41952
parentef8c956172aa967f67c524cb9609a4d390d74b82 (diff)
patch 8.1.0987: unnecessary condition in #ifdefv8.1.0987
Problem: Unnecessary condition in #ifdef. Solution: Remove using CYGWIN32. (Ken Takata)
-rw-r--r--src/os_unix.h2
-rw-r--r--src/version.c2
-rw-r--r--src/xxd/xxd.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/os_unix.h b/src/os_unix.h
index 8919ff0fa1..5df943c70b 100644
--- a/src/os_unix.h
+++ b/src/os_unix.h
@@ -33,7 +33,7 @@
# include <stdlib.h>
#endif
-#if defined(__CYGWIN__) || defined(__CYGWIN32__)
+#ifdef __CYGWIN__
# define WIN32UNIX /* Compiling for Win32 using Unix files. */
# define BINARY_FILE_IO
diff --git a/src/version.c b/src/version.c
index 3132a1d448..e7d49235da 100644
--- a/src/version.c
+++ b/src/version.c
@@ -780,6 +780,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 987,
+/**/
986,
/**/
985,
diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c
index c24089e4ed..b9f6041ba0 100644
--- a/src/xxd/xxd.c
+++ b/src/xxd/xxd.c
@@ -71,7 +71,7 @@
# define _CRT_SECURE_NO_DEPRECATE
# define _CRT_NONSTDC_NO_DEPRECATE
#endif
-#if !defined(CYGWIN) && (defined(CYGWIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__))
+#if !defined(CYGWIN) && defined(__CYGWIN__)
# define CYGWIN
#endif