Skip to content

Commit

Permalink
Avoid undefining BOOST_AUTO_LINK_NOMANGLE
Browse files Browse the repository at this point in the history
Avoid undefining BOOST_AUTO_LINK_NOMANGLE if it was previously defined.
  • Loading branch information
tomy2105 authored and jeking3 committed Apr 19, 2019
1 parent 614108a commit 32469a6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions include/boost/uuid/detail/random_provider_bcrypt.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@

#if defined(BOOST_UUID_FORCE_AUTO_LINK) || (!defined(BOOST_ALL_NO_LIB) && !defined(BOOST_UUID_RANDOM_PROVIDER_NO_LIB))
# define BOOST_LIB_NAME "bcrypt"
# define BOOST_AUTO_LINK_NOMANGLE
# include <boost/config/auto_link.hpp>
# undef BOOST_AUTO_LINK_NOMANGLE
# if defined(BOOST_AUTO_LINK_NOMANGLE)
# include <boost/config/auto_link.hpp>
# else
# define BOOST_AUTO_LINK_NOMANGLE
# include <boost/config/auto_link.hpp>
# undef BOOST_AUTO_LINK_NOMANGLE
# endif
#endif

namespace boost {
Expand Down
10 changes: 7 additions & 3 deletions include/boost/uuid/detail/random_provider_wincrypt.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@
# else
# define BOOST_LIB_NAME "advapi32"
# endif
# define BOOST_AUTO_LINK_NOMANGLE
# include <boost/config/auto_link.hpp>
# undef BOOST_AUTO_LINK_NOMANGLE
# if defined(BOOST_AUTO_LINK_NOMANGLE)
# include <boost/config/auto_link.hpp>
# else
# define BOOST_AUTO_LINK_NOMANGLE
# include <boost/config/auto_link.hpp>
# undef BOOST_AUTO_LINK_NOMANGLE
# endif
#endif

namespace boost {
Expand Down

0 comments on commit 32469a6

Please sign in to comment.