From: Bram Moolenaar Date: Sat, 2 Mar 2019 06:15:28 +0000 (+0100) Subject: patch 8.1.0987: unnecessary condition in #ifdef X-Git-Tag: v8.1.0987 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ef8f9eacdf9185d9bd03613c0a0de40ea5e3f07;p=vim patch 8.1.0987: unnecessary condition in #ifdef Problem: Unnecessary condition in #ifdef. Solution: Remove using CYGWIN32. (Ken Takata) --- 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 #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 @@ -779,6 +779,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 987, /**/ 986, /**/ 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