From 08393b0503d096222aabcd38ed1570eb39df9f64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 7 Oct 2008 06:08:26 +0000 Subject: [PATCH] fixed VC++ compiler checks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listctrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 2e11009b92..cde7db8f80 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -2467,7 +2467,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) // see comment at the end of wxListCtrl::GetColumn() #ifdef NM_CUSTOMDRAW // _WIN32_IE >= 0x0300 -#if _MSC_VER >= 1400 && _MSC_VER < 1500 +#if defined(__VISUALC__) && __VISUALC__ >= 1400 && __VISUALC__ < 1500 // Turn off optimizations for this function to avoid an ICE in the MSVC8 // 64-bit compiler, observed with the compiler included with the PDSK-2003. // If there is a better way to test for this please do. @@ -2488,7 +2488,7 @@ static RECT GetCustomDrawnItemRect(const NMCUSTOMDRAW& nmcd) return rc; } -#if _MSC_VER >= 1400 && _MSC_VER < 1500 +#if defined(__VISUALC__) && __VISUALC__ >= 1400 && __VISUALC__ < 1500 // Reset optimizations to their former setting #pragma optimize( "", on ) #endif