X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d368860323bf1f7e03e8ece4e8ce75f88d5ef7dc..508bd1654f3eb44327fb84ecd2e2181959dac13b:/include/wx/init.h diff --git a/include/wx/init.h b/include/wx/init.h index 3ea8957cc3..974a5a7266 100644 --- a/include/wx/init.h +++ b/include/wx/init.h @@ -53,9 +53,15 @@ extern int WXDLLIMPEXP_BASE wxEntry(int& argc, char **argv); #endif// wxUSE_UNICODE +// Under Windows we define additional wxEntry() overloads with signature +// compatible with WinMain() and not the traditional main(). +#if wxUSE_GUI && defined(__WINDOWS__) + #include "wx/msw/init.h" +#endif + // ---------------------------------------------------------------------------- // Using the library without (explicit) application object: you may avoid using -// DECLARE_APP and IMPLEMENT_APP macros and call the functions below instead at +// wxDECLARE_APP and wxIMPLEMENT_APP macros and call the functions below instead at // the program startup and termination // ----------------------------------------------------------------------------