From 3741cbab371ce73d260bb0a6677c6f52cd1d096e Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Fri, 30 Oct 2015 14:46:08 +0100 Subject: [PATCH] Don't auto-link when the user requested that we don't --- src/unique_path.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/unique_path.cpp b/src/unique_path.cpp index 1b05c839..8e10bd93 100644 --- a/src/unique_path.cpp +++ b/src/unique_path.cpp @@ -17,6 +17,7 @@ # define BOOST_SYSTEM_NO_DEPRECATED #endif +#include #include #include @@ -29,7 +30,11 @@ # include # include # ifdef _MSC_VER -# pragma comment(lib, "Advapi32.lib") +# if !defined(BOOST_FILESYSTEM_NO_LIB) +# define BOOST_LIB_NAME "advapi32" +# define BOOST_AUTO_LINK_NOMANGLE +# include +# endif # endif # endif