1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

Include <intrin.h> for hardware SHA on Windows

Fixes failure to build under Windows with Visual Studio 14.
This commit is contained in:
Viktor Dukhovni 2018-04-12 23:20:52 -04:00 committed by Simon Tatham
parent 044a9304e3
commit fbc8b7a8cb
2 changed files with 8 additions and 0 deletions

View File

@ -413,6 +413,10 @@ int main(void) {
#ifdef COMPILER_SUPPORTS_SHA_NI
#if defined _MSC_VER && defined _M_AMD64
# include <intrin.h>
#endif
/*
* Set target architecture for Clang and GCC
*/

View File

@ -470,6 +470,10 @@ const struct ssh_mac ssh_hmac_sha1_96_buggy = {
#ifdef COMPILER_SUPPORTS_SHA_NI
#if defined _MSC_VER && defined _M_AMD64
# include <intrin.h>
#endif
/*
* Set target architecture for Clang and GCC
*/