X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d368860323bf1f7e03e8ece4e8ce75f88d5ef7dc..fe94d0d06a2305845f0cb0c0b8fc0edbde2e2b68:/include/wx/init.h diff --git a/include/wx/init.h b/include/wx/init.h index 3ea8957cc3..6ce8e82876 100644 --- a/include/wx/init.h +++ b/include/wx/init.h @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 29.06.2003 -// RCS-ID: $Id$ // Copyright: (c) 2003 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -53,9 +52,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 // ----------------------------------------------------------------------------