diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-02 07:15:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-02 07:15:28 +0100 |
commit | 6ef8f9eacdf9185d9bd03613c0a0de40ea5e3f07 (patch) | |
tree | 7348bfa7e05b8763bb27e8e583b2b13bfeb41952 | |
parent | ef8c956172aa967f67c524cb9609a4d390d74b82 (diff) | |
download | vim-git-6ef8f9eacdf9185d9bd03613c0a0de40ea5e3f07.tar.gz |
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.h | 2 | ||||
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/xxd/xxd.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/os_unix.h b/src/os_unix.h index 8919ff0fa..5df943c70 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 3132a1d44..e7d49235d 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 c24089e4e..b9f6041ba 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 |