From 6ef8f9eacdf9185d9bd03613c0a0de40ea5e3f07 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 2 Mar 2019 07:15:28 +0100 Subject: [PATCH] patch 8.1.0987: unnecessary condition in #ifdef Problem: Unnecessary condition in #ifdef. Solution: Remove using CYGWIN32. (Ken Takata) --- src/os_unix.h | 2 +- src/version.c | 2 ++ 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 #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 -- 2.40.0