From 9d50d43a838d3ee07a39d47ce98f4871d847c4cc Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Mon, 19 May 2014 20:45:14 +0200 Subject: [PATCH] wincng.c: specify the required libraries for dependencies using MSVC Initially reported by Bob Kast as "for MS VS builds, specify the libraries that are required so they don't need to go into all project files that may use this library". Thanks a lot. --- src/wincng.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/wincng.c b/src/wincng.c index f5390d2..b575350 100644 --- a/src/wincng.c +++ b/src/wincng.c @@ -48,6 +48,14 @@ #define _WIN32_WINNT 0x0600 #endif +/* specify the required libraries for dependencies using MSVC */ +#ifdef _MSC_VER +#pragma comment(lib, "bcrypt.lib") +#ifdef HAVE_LIBCRYPT32 +#pragma comment(lib, "crypt32.lib") +#endif +#endif + #include #include #include