From: Richard Levitte Date: Mon, 15 Jan 2018 18:05:01 +0000 (+0100) Subject: The Cygwin gcc doesn't define _WIN32, don't pretend it does X-Git-Tag: OpenSSL_1_1_1-pre1~180 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=4d3c278c1a4f940e098edac6de3d370b94d1bb8b The Cygwin gcc doesn't define _WIN32, don't pretend it does Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/5060) --- diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index c2bd2193b7..3a2b733f5e 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -105,7 +105,7 @@ void OPENSSL_cpuid_setup(void) } #endif -#if defined(_WIN32) && !defined(__CYGWIN__) +#if defined(_WIN32) # include # include # ifdef __WATCOMC__ @@ -320,7 +320,7 @@ void OPENSSL_die(const char *message, const char *file, int line) { OPENSSL_showfatal("%s:%d: OpenSSL internal error: %s\n", file, line, message); -#if !defined(_WIN32) || defined(__CYGWIN__) +#if !defined(_WIN32) abort(); #else /*