diff --git a/eeschema/sim/sim_lib_mgr.cpp b/eeschema/sim/sim_lib_mgr.cpp index 39a4a64388..32bf652421 100644 --- a/eeschema/sim/sim_lib_mgr.cpp +++ b/eeschema/sim/sim_lib_mgr.cpp @@ -22,13 +22,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -#include -#include -#include -#include #include #include +#include +// Include simulator headers after wxWidgets headers to avoid conflicts with Windows headers +// (especially on msys2 + wxWidgets 3.0.x) +#include +#include +#include SIM_LIB_MGR::SIM_LIB_MGR( const PROJECT& aPrj ) : m_project( aPrj ) { diff --git a/eeschema/sim/sim_model.cpp b/eeschema/sim/sim_model.cpp index afa280cda6..5cd5f1605a 100644 --- a/eeschema/sim/sim_model.cpp +++ b/eeschema/sim/sim_model.cpp @@ -21,6 +21,8 @@ * or you may write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +#include +#include #include #include @@ -38,9 +40,6 @@ #include -#include -#include - #include #include #include @@ -50,7 +49,6 @@ #include -using DEVICE_TYPE = SIM_MODEL::DEVICE_TYPE_; using TYPE = SIM_MODEL::TYPE; @@ -812,7 +810,7 @@ std::unique_ptr SIM_MODEL::Create( TYPE aType ) case TYPE::C: case TYPE::L: return std::make_unique( aType ); - + case TYPE::R_POT: return std::make_unique(); @@ -903,7 +901,7 @@ SIM_MODEL::SIM_MODEL( TYPE aType, SIM_MODEL::SIM_MODEL( TYPE aType, std::unique_ptr aSpiceGenerator, - std::unique_ptr aSerde ) : + std::unique_ptr aSerde ) : m_baseModel( nullptr ), m_serde( std::move( aSerde ) ), m_spiceGenerator( std::move( aSpiceGenerator ) ),