X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eecb33b0189a3804dead82317a575e0f1d52cd9f..97c58531bf6912d5b6214b4bd6298466ebcb87ca:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index e24b165c2b..4508ef1bca 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -263,7 +263,7 @@ public: // version does the normal processing (i.e. shows the usual assert failure // dialog box) // - // the arguments are the place where the assert occured, the text of the + // the arguments are the place where the assert occurred, the text of the // assert itself and the user-specified message #ifdef __WXDEBUG__ virtual void OnAssert(const wxChar *file, @@ -661,6 +661,7 @@ public: } \ wxAppInitializer \ wxTheAppInitializer((wxAppInitializerFunction) wxCreateApp); \ + DECLARE_APP(appname) \ appname& wxGetApp() { return *(appname *)wxTheApp; } // Same as IMPLEMENT_APP() normally but doesn't include themes support in @@ -684,5 +685,13 @@ public: // function #define DECLARE_APP(appname) extern appname& wxGetApp(); + +// declare the stuff defined by IMPLEMENT_APP() macro, it's not really needed +// anywhere else but at the very least it suppresses icc warnings about +// defining extern symbols without prior declaration, and it shouldn't do any +// harm +extern wxAppConsole *wxCreateApp(); +extern wxAppInitializer wxTheAppInitializer; + #endif // _WX_APP_H_BASE_