From e74654a20f9656abe16d3e22796241330fdd0553 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 10 Dec 2022 08:21:35 +0100 Subject: [PATCH] Minor fix to avoid conflict names issues with mingw + pegtl. --- eeschema/sim/sim_value.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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>,