From f1f5039b45517ae2a7a500ffb9b2e05bb211763b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 8 Oct 2005 16:56:01 +0000 Subject: [PATCH] don't use wxCHECK_GCC_VERSION in the same test as __MINGW32__/__CYGWIN32__ as it could be undefined (DEC cc warning fix) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index 22437ecab7..48561360f0 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -252,10 +252,11 @@ typedef int wxWindowID; #if defined(__VISUALC__) && (__VISUALC__ >= 1100) /* VC++ 6.0 and 5.0 have C++ casts (what about earlier versions?) */ #define HAVE_CXX_CASTS - #elif ( defined(__MINGW32__) || defined(__CYGWIN32__) ) \ - && wxCHECK_GCC_VERSION(2, 95) - /* GCC 2.95 has C++ casts, what about earlier versions? */ - #define HAVE_CXX_CASTS + #elif defined(__MINGW32__) || defined(__CYGWIN32__) + #if wxCHECK_GCC_VERSION(2, 95) + /* GCC 2.95 has C++ casts, what about earlier versions? */ + #define HAVE_CXX_CASTS + #endif #endif #endif /* !HAVE_CXX_CASTS */