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 <memory>
#include <pegtl.hpp> #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 namespace SIM_VALUE_GRAMMAR
{ {