|
|
|
@ -47,6 +47,10 @@ |
|
|
|
#include <confirm.h>
|
|
|
|
#include <settings/settings_manager.h>
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
|
#include <config.h>
|
|
|
|
#include <VersionHelpers.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Only a single KIWAY is supported in this single_top top level component,
|
|
|
|
// which is dedicated to loading only a single DSO.
|
|
|
|
@ -160,6 +164,20 @@ struct APP_SINGLE_TOP : public wxApp |
|
|
|
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF ); |
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined( _WIN32 ) && defined( PYTHON_VERSION_MAJOR ) \
|
|
|
|
&& ( ( PYTHON_VERSION_MAJOR == 3 && PYTHON_VERSION_MINOR >= 8 ) \ |
|
|
|
|| PYTHON_VERSION_MAJOR > 3 ) |
|
|
|
|
|
|
|
// Python 3.8 switched to Windows 8+ API, we do not support Windows 7 and will not attempt to hack around it
|
|
|
|
// Gracefully inform the user and refuse to start (because python will crash us if we continue)
|
|
|
|
if( !IsWindows8OrGreater() ) |
|
|
|
{ |
|
|
|
wxMessageBox( _( "Windows 7 and older is no longer supported by KiCad and it's dependencies." ), |
|
|
|
_( "Unsupported Operating System" ), wxOK | wxICON_ERROR ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
// Force wxHtmlWinParser initialization when a wxHtmlWindow is used only
|
|
|
|
// in a shared library (.so or .dll file)
|
|
|
|
// Otherwise the Html text is displayed as plain text.
|
|
|
|
|