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