From e8ce4ab8e8b0d879b5a6b55b670ef60fa1e8c4df Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 22 Feb 2015 18:18:43 +0100 Subject: [PATCH] Enable _WIN32 on detection of MinGW, not Cygwin. --- include/GLFW/glfw3.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index b9da8ec2..a80ace94 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -78,12 +78,8 @@ extern "C" { * been able to test this file with yet. * * First: If we are we on Windows, we want a single define for it (_WIN32) - * (Note: For Cygwin the compiler flag -mwin32 should be used, but to - * make sure that things run smoothly for Cygwin users, we add __CYGWIN__ - * to the list of "valid Win32 identifiers", which removes the need for - * -mwin32) */ -#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__CYGWIN__)) +#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)) #define _WIN32 #endif /* _WIN32 */