mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-10 06:23:02 +03:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user