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
This commit is contained in:
Václav Slavík
2008-10-07 06:08:26 +00:00
parent 3ca5c26f6a
commit 08393b0503

View File

@@ -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