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