Skip to content

Commit

Permalink
[skip ci] [Mesh] add comment for boost
Browse files Browse the repository at this point in the history
  • Loading branch information
donovaly committed Dec 20, 2022
1 parent 12a0574 commit 6b5e015
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/Mod/MeshPart/App/MeshFlatteningBoostPython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
# include <TopoDS_Face.hxx>
#endif

// boost is purposely not in the precompiled headers, see
// https://github.com/FreeCAD/FreeCAD/pull/7979#issuecomment-1358123252
#include <boost/python.hpp>
#include <boost/python/call.hpp>
#include <boost/python/class.hpp>
Expand Down
15 changes: 7 additions & 8 deletions src/boost_regex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@

#include <boost/version.hpp>

#if BOOST_VERSION >= 107800

// Workaround for boost >= 1.78
#ifdef WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#if BOOST_VERSION >= 107800
# ifdef WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <Windows.h>
# endif
#endif

#endif
#include <boost/regex.hpp>

#endif // #ifndef FREECAD_REGEX_HPP_WORKAROUND

0 comments on commit 6b5e015

Please sign in to comment.