OpenSC.msi: fixed compilation with VS2015

WiX 3.10 uses `__vsnprintf` which is deprecated since VS2015
This commit is contained in:
Frank Morgner 2016-02-17 18:45:40 +01:00
parent 221165d763
commit ed504cb22f
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@
// WiX Header Files:
#include <wcautil.h>
#if defined(_MSC_VER) && (_MSC_VER >= 1900)
// only for VS 2015 or later
// WiX 3.10 was built for older versions of VS and needs this for compatibility
#pragma comment(lib, "legacy_stdio_definitions.lib")
#endif
#define X86onX64_SC_DATABASE TEXT("SOFTWARE\\Wow6432Node\\Microsoft\\Cryptography\\Calais\\SmartCards")
#define SC_DATABASE TEXT("SOFTWARE\\Microsoft\\Cryptography\\Calais\\SmartCards")
#define BASE_CSP TEXT("OpenSC CSP")