diff --git a/eeschema/sim/sim_model.h b/eeschema/sim/sim_model.h index dbe2577dad..59e2163dcc 100644 --- a/eeschema/sim/sim_model.h +++ b/eeschema/sim/sim_model.h @@ -25,13 +25,17 @@ #ifndef SIM_MODEL_H #define SIM_MODEL_H -#include -#include -#include -#include #include #include +#include +#include + +// Must be included after sch_field.h (exactly eda_shape.h) to avoid a colliding +// declaration with a window header (under msys2) +#include +#include + class SIM_LIBRARY; @@ -94,7 +98,7 @@ public: // There's a trailing '_' because `DEVICE_TYPE` collides with something in Windows headers. - DEFINE_ENUM_CLASS_WITH_ITERATOR( DEVICE_TYPE_, + DEFINE_ENUM_CLASS_WITH_ITERATOR( DEVICE_TYPE_, NONE, R, @@ -359,7 +363,7 @@ public: std::unique_ptr value; const INFO& info; bool isOtherVariant = false; // Legacy. - + PARAM( const INFO& aInfo, bool aIsOtherVariant = false ) : value( SIM_VALUE::Create( aInfo.type ) ), info( aInfo ),