Fix build warnings from deprecated Boost headers (they are used internally by Boost). Thanks @wwmayer for the hint.

This commit is contained in:
Mateusz Skowroński
2020-12-28 19:15:57 +01:00
committed by wwmayer
parent 4ea97faa5b
commit 2559f2d29c
66 changed files with 82 additions and 64 deletions

9
src/boost_python.hpp Normal file
View File

@@ -0,0 +1,9 @@
#ifndef FREECAD_BOOST_PYTHON_HPP_WORKAROUND
#define FREECAD_BOOST_PYTHON_HPP_WORKAROUND
// Workaround for boost >= 1.74
#define BOOST_ALLOW_DEPRECATED_HEADERS
#include <boost/python.hpp>
#undef BOOST_ALLOW_DEPRECATED_HEADERS
#endif // #ifndef FREECAD_BOOST_PYTHON_HPP_WORKAROUND