X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/252a752e85d42d81f2c55e128ab3bd9c6fd70c51..4314ec480ecfdd8c0d170e570978d6d2134fc8be:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index 51d126b8ea..5341e7d2b1 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -282,7 +282,10 @@ protected: #include "wx/stubs/app.h" #endif #else // !GUI - typedef wxAppBase wxApp; + // can't use typedef because wxApp forward declared as a class + class WXDLLEXPORT wxApp : public wxAppBase + { + }; #endif // GUI/!GUI // ---------------------------------------------------------------------------- @@ -322,13 +325,13 @@ inline void WXDLLEXPORT wxPostEvent(wxEvtHandler *dest, wxEvent& event) dest->AddPendingEvent(event); } -#endif // wxUSE_GUI/!wxUSE_GUI +#endif // wxUSE_GUI // console applications may avoid using DECLARE_APP and IMPLEMENT_APP macros // and call these functions instead at the program startup and termination // ------------------------------------------------------------------------- -#if wxUSE_NOGUI +#if !wxUSE_GUI // initialize the library (may be called as many times as needed, but each // call to wxInitialize() must be matched by wxUninitialize()) @@ -338,7 +341,7 @@ extern bool WXDLLEXPORT wxInitialize(); // wxUninitialize() extern void WXDLLEXPORT wxUninitialize(); -#endif // wxUSE_NOGUI +#endif // !wxUSE_GUI // ---------------------------------------------------------------------------- // macros for dynamic creation of the application object