The Cygwin gcc doesn't define _WIN32, don't pretend it does
authorRichard Levitte <levitte@openssl.org>
Mon, 15 Jan 2018 18:05:01 +0000 (19:05 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 18 Jan 2018 13:49:43 +0000 (14:49 +0100)
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5060)

(cherry picked from commit 4d3c278c1a4f940e098edac6de3d370b94d1bb8b)

crypto/cryptlib.c

index f011b4b6923cb0d7799a8310cdbda5e2f9adf97f..ccfdbdc97b7420ef376cd8ab42ef98bf6e46e7e3 100644 (file)
@@ -99,7 +99,7 @@ void OPENSSL_cpuid_setup(void)
 }
 #endif
 
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32)
 # include <tchar.h>
 # include <signal.h>
 # ifdef __WATCOMC__
@@ -308,7 +308,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
     /*