diff --git a/eeschema/sim/sim_value.h b/eeschema/sim/sim_value.h index 2b9e066c47..dd2637b10a 100644 --- a/eeschema/sim/sim_value.h +++ b/eeschema/sim/sim_value.h @@ -31,6 +31,14 @@ #include #include +// Undef some annoying defines in windows headers added by pegtl.hpp +// that can create issues in .cpp files, mainly on msys2 +#if defined (__MINGW32__) +#if defined ( LoadLibrary ) +#undef LoadLibrary +#endif +#endif + namespace SIM_VALUE_GRAMMAR { @@ -161,7 +169,7 @@ namespace SIM_VALUE_GRAMMAR template struct significand; - + template <> struct significand : sor, fracPart>, seq>,