From e0af5a895b00a550992a358bae882baf851a9962 Mon Sep 17 00:00:00 2001 From: Karsten Ohme Date: Sun, 21 May 2017 19:35:48 +0200 Subject: [PATCH] Update platform-specific.inc Fix for Visual Studio 2015 compilation to find necessary libraries --- platform-specific.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform-specific.inc b/platform-specific.inc index 1bb595a..148cafc 100644 --- a/platform-specific.inc +++ b/platform-specific.inc @@ -8,6 +8,10 @@ #if (defined(_WIN32) || defined(_WIN64)) /* Windows */ +// use pragma syntax to prevent tweaking the linker script for getting CryptXYZ function +#pragma comment(lib, "crypt32.lib") +#pragma comment(lib, "advapi32.lib") + #define WIN32_LEAN_AND_MEAN #include #include