From 8489b4d12476ca5b5a26adeded77a02980312ae7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 14 Nov 2022 12:56:00 +0100 Subject: [PATCH] __vectorcall didn't exist prior to Visual Studio 2012 --- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | 2 +- .../crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c index 43bfc83e..9fb9919f 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -21,7 +21,7 @@ #pragma GCC target("pclmul") #endif -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER < 1800 #define __vectorcall #endif diff --git a/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c b/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c index 774d5d6c..898b4db9 100644 --- a/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c +++ b/src/libsodium/crypto_aead/aes256gcm/armcrypto/aead_aes256gcm_armcrypto.c @@ -15,7 +15,7 @@ #if defined(HAVE_ARMCRYPTO) && defined(__clang__) && defined(NATIVE_LITTLE_ENDIAN) -#ifndef _MSC_VER +#if !defined(MSC_VER) || _MSC_VER < 1800 #define __vectorcall #endif