use __VISUALC__ instead of _MSC_VER to avoid problems with CW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-23 16:04:09 +00:00
parent b7f8adfd2d
commit 2dd9b2717f

View File

@@ -46,7 +46,7 @@
// we must disable optimizations for VC.NET because otherwise its too eager
// linker discards wxClassInfo objects in release build thus breaking many,
// many things
#if defined _MSC_VER && _MSC_VER >= 1300
#if defined __VISUALC__ && __VISUALC__ >= 1300
#pragma optimize("", off)
#endif
@@ -55,7 +55,7 @@ wxClassInfo wxObject::sm_classwxObject( wxT("wxObject"), 0, 0,
(wxObjectConstructorFn) 0 );
// restore optimizations
#if defined _MSC_VER && _MSC_VER >= 1300
#if defined __VISUALC__ && __VISUALC__ >= 1300
#pragma optimize("", on)
#endif