mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +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:
parent
044a9304e3
commit
fbc8b7a8cb
@ -413,6 +413,10 @@ int main(void) {
|
|||||||
|
|
||||||
#ifdef COMPILER_SUPPORTS_SHA_NI
|
#ifdef COMPILER_SUPPORTS_SHA_NI
|
||||||
|
|
||||||
|
#if defined _MSC_VER && defined _M_AMD64
|
||||||
|
# include <intrin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set target architecture for Clang and GCC
|
* Set target architecture for Clang and GCC
|
||||||
*/
|
*/
|
||||||
|
4
sshsha.c
4
sshsha.c
@ -470,6 +470,10 @@ const struct ssh_mac ssh_hmac_sha1_96_buggy = {
|
|||||||
|
|
||||||
#ifdef COMPILER_SUPPORTS_SHA_NI
|
#ifdef COMPILER_SUPPORTS_SHA_NI
|
||||||
|
|
||||||
|
#if defined _MSC_VER && defined _M_AMD64
|
||||||
|
# include <intrin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set target architecture for Clang and GCC
|
* Set target architecture for Clang and GCC
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user