fix VC 7.x release build problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
// Modified by: Ron Lee
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 1998 Julian Smart and Markus Holzem
|
||||
// Copyright: (c) 1998 Julian Smart
|
||||
// (c) 2001 Ron Lee <ron@debian.org>
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@@ -43,11 +43,22 @@
|
||||
#endif
|
||||
#endif // __WXDEBUG__ || wxUSE_DEBUG_CONTEXT
|
||||
|
||||
// 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
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
|
||||
wxClassInfo wxObject::sm_classwxObject( wxT("wxObject"), 0, 0,
|
||||
(int) sizeof(wxObject),
|
||||
(wxObjectConstructorFn) 0 );
|
||||
|
||||
// restore optimizations
|
||||
#if defined _MSC_VER && _MSC_VER >= 1300
|
||||
#pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
wxClassInfo* wxClassInfo::sm_first = NULL;
|
||||
wxHashTable* wxClassInfo::sm_classTable = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user