From 0a6cce3b98c88136c52bcc482ef35cad2289d413 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 16 Feb 2002 11:16:38 +0000 Subject: [PATCH] bracketed include def for CW nothrow flag for MAKINGDLL only git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/app.cpp | 9 +++++---- src/mac/carbon/app.cpp | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/mac/app.cpp b/src/mac/app.cpp index 0c87a10378..8cd0fbe281 100644 --- a/src/mac/app.cpp +++ b/src/mac/app.cpp @@ -373,11 +373,12 @@ void wxMacStringToPascal( const char * from , StringPtr to , bool pc2macEncoding CopyCStringToPascal( from , to ) ; } } - +#ifdef WXMAKINGDLL #ifndef __DARWIN__ // we know it's there ;-) WXIMPORT char std::__throws_bad_alloc ; #endif +#endif bool wxApp::Initialize() { @@ -509,6 +510,9 @@ bool wxApp::Initialize() #endif // wxUSE_LOG #endif + wxWinMacWindowList = new wxList(wxKEY_INTEGER); + wxWinMacControlList = new wxList(wxKEY_INTEGER); + wxInitializeStockLists(); wxInitializeStockObjects(); @@ -523,9 +527,6 @@ bool wxApp::Initialize() return FALSE; } - wxWinMacWindowList = new wxList(wxKEY_INTEGER); - wxWinMacControlList = new wxList(wxKEY_INTEGER); - wxMacCreateNotifierTable() ; UMAShowArrowCursor() ; diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index 0c87a10378..8cd0fbe281 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -373,11 +373,12 @@ void wxMacStringToPascal( const char * from , StringPtr to , bool pc2macEncoding CopyCStringToPascal( from , to ) ; } } - +#ifdef WXMAKINGDLL #ifndef __DARWIN__ // we know it's there ;-) WXIMPORT char std::__throws_bad_alloc ; #endif +#endif bool wxApp::Initialize() { @@ -509,6 +510,9 @@ bool wxApp::Initialize() #endif // wxUSE_LOG #endif + wxWinMacWindowList = new wxList(wxKEY_INTEGER); + wxWinMacControlList = new wxList(wxKEY_INTEGER); + wxInitializeStockLists(); wxInitializeStockObjects(); @@ -523,9 +527,6 @@ bool wxApp::Initialize() return FALSE; } - wxWinMacWindowList = new wxList(wxKEY_INTEGER); - wxWinMacControlList = new wxList(wxKEY_INTEGER); - wxMacCreateNotifierTable() ; UMAShowArrowCursor() ;