X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..37b8e6798782278fdfe4f3c1291aaff55cdbb8c9:/src/os2/app.cpp?ds=sidebyside diff --git a/src/os2/app.cpp b/src/os2/app.cpp index 91434fe7dd..3e752ba5ff 100644 --- a/src/os2/app.cpp +++ b/src/os2/app.cpp @@ -164,7 +164,7 @@ bool wxApp::Initialize( // This is to foil optimizations in Visual C++ that throw out dummy.obj. // PLEASE DO NOT ALTER THIS. -#if !defined(WXMAKINGDLL) +#if !defined(WXMAKINGDLL) && defined(__VISAGECPP__) extern char wxDummyChar; if (wxDummyChar) wxDummyChar++; #endif @@ -510,6 +510,7 @@ wxApp::wxApp() wxApp::~wxApp() { +#if wxUSE_UNICODE // Delete command-line args int i; for (i = 0; i < argc; i++) @@ -517,6 +518,7 @@ wxApp::~wxApp() delete[] argv[i]; } delete[] argv; +#endif } bool wxApp::Initialized()