Minor fix to avoid conflict names issues with mingw + pegtl.

This commit is contained in:
jean-pierre charras 2022-12-10 08:21:35 +01:00
parent da9aa2ae6f
commit e74654a20f
1 changed files with 9 additions and 1 deletions

View File

@ -31,6 +31,14 @@
#include <memory>
#include <pegtl.hpp>
// 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 <SIM_VALUE::TYPE ValueType>
struct significand;
template <> struct significand<SIM_VALUE::TYPE_FLOAT> :
sor<seq<intPart, one<'.'>, fracPart>,
seq<intPart, one<'.'>>,