Remove tests for _UNICODE too

It is now always defined, so testing for it is useless.

Give an error in MSVC-specific header if it is not defined as it should
be.
This commit is contained in:
Vadim Zeitlin 2022-10-27 19:15:16 +02:00
parent 340998fe77
commit 53b3b979fe
8 changed files with 31 additions and 207 deletions

View file

@ -159,7 +159,6 @@ wxDECLARE_APP(MyApp);
// Notice use of wxIMPLEMENT_APP_NO_MAIN() instead of the usual wxIMPLEMENT_APP!
wxIMPLEMENT_APP_NO_MAIN(MyApp);
#ifdef _UNICODE
// In Unicode build MFC normally requires to manually change the entry point to
// wWinMainCRTStartup() but to avoid having to modify the project options to do
// it we provide an adapter for it.
@ -169,7 +168,6 @@ int WINAPI WinMain(HINSTANCE, HINSTANCE, char *, int)
{
wWinMainCRTStartup();
}
#endif // _UNICODE
CMainWindow::CMainWindow()
{