Fix build warnings from deprecated Boost headers (they are used internally by Boost). Thanks @wwmayer for the hint.
This commit is contained in:
committed by
wwmayer
parent
4ea97faa5b
commit
2559f2d29c
9
src/boost_python.hpp
Normal file
9
src/boost_python.hpp
Normal 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
|
||||
Reference in New Issue
Block a user