From ea6e8e990676b089aeab94b050f0457e0fea2d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Skowro=C5=84ski?= Date: Fri, 1 Jan 2021 10:52:17 +0100 Subject: [PATCH] Fix build warnings from deprecated Boost headers (1.74) --- src/Mod/Path/App/Area.cpp | 2 +- src/boost_geometry.hpp | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/boost_geometry.hpp diff --git a/src/Mod/Path/App/Area.cpp b/src/Mod/Path/App/Area.cpp index b3f2440dcc..11f11fc63f 100644 --- a/src/Mod/Path/App/Area.cpp +++ b/src/Mod/Path/App/Area.cpp @@ -35,7 +35,7 @@ # include "boost_fix/intrusive/detail/memory_util.hpp" # include "boost_fix/container/detail/memory_util.hpp" # endif -# include +# include # include # include # include diff --git a/src/boost_geometry.hpp b/src/boost_geometry.hpp new file mode 100644 index 0000000000..e3d066ebdc --- /dev/null +++ b/src/boost_geometry.hpp @@ -0,0 +1,9 @@ +#ifndef FREECAD_GEOMETRY_HPP_WORKAROUND +#define FREECAD_GEOMETRY_HPP_WORKAROUND + +// Workaround for boost >= 1.74 +#define BOOST_ALLOW_DEPRECATED_HEADERS +#include +#undef BOOST_ALLOW_DEPRECATED_HEADERS + +#endif // #ifndef FREECAD_GEOMETRY_HPP_WORKAROUND