From 74bdbc46c3a8cda6dcd7b027c371b0bdce7c8fbb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 17 Jul 2002 21:55:19 +0000 Subject: [PATCH] explicit support for CW (patch 582581) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index ed4aca1603..dbd1be4c13 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -231,8 +231,11 @@ typedef int wxWindowID; // check for explicit keyword support #ifndef HAVE_EXPLICIT - // TODO: add more compiler tests here - #if defined(__VISUALC__) && (__VISUALC__ > 1020) + // VC++ 6.0 has explicit (what about the earlier versions?) + #if defined(__VISUALC__) && (__VISUALC__ > 1200) + #define HAVE_EXPLICIT + // Metrowerks CW6 or higher has explicit + #elif defined(__MWERKS__) && (__MWERKS__ >= 0x2400) #define HAVE_EXPLICIT #endif #endif // !HAVE_EXPLICIT