Fix linking console applications with MinGW in monolithic build
Do compile wxEntry(void) overload used in wxIMPLEMENT_WXWIN_MAIN_CONSOLE expansion by non-MSVC compilers under MSW inside the monolithic library too by replacing the "#if !wxUSE_GUI" check guarding it with "#if wxUSE_BASE" one. It's not really clear how could this have ever worked without this fix before, although it apparently did, but stopped with gcc 7.
This commit is contained in:
parent
3063ea6ca9
commit
81304fcafd
@ -305,7 +305,13 @@ WXDLLEXPORT int wxEntry(HINSTANCE hInstance,
|
||||
return wxEntry(wxArgs.argc, wxArgs.argv);
|
||||
}
|
||||
|
||||
#else // !wxUSE_GUI
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global HINSTANCE
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_BASE
|
||||
|
||||
int wxEntry()
|
||||
{
|
||||
@ -314,14 +320,6 @@ int wxEntry()
|
||||
return wxEntry(wxArgs.argc, wxArgs.argv);
|
||||
}
|
||||
|
||||
#endif // wxUSE_GUI/!wxUSE_GUI
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global HINSTANCE
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_BASE
|
||||
|
||||
HINSTANCE wxhInstance = 0;
|
||||
|
||||
extern "C" HINSTANCE wxGetInstance()
|
||||
|
Loading…
Reference in New Issue
Block a user