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.
This commit is contained in:
Marc Hoersken 2014-05-19 20:45:14 +02:00
parent c355d31ff9
commit 9d50d43a83

View File

@ -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 <windows.h>
#include <bcrypt.h>
#include <math.h>