From 34e020ac35a40b9b9440d0064dcd9dcf64fe0cbe Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 23 Feb 2022 21:00:53 +0100 Subject: Win fixes --- src/lib/third_party/src/gcrypt/gcm.c | 4 ++++ src/lib/third_party/src/gcrypt_light.c | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/lib') diff --git a/src/lib/third_party/src/gcrypt/gcm.c b/src/lib/third_party/src/gcrypt/gcm.c index 824c92bc9..6a24524e0 100644 --- a/src/lib/third_party/src/gcrypt/gcm.c +++ b/src/lib/third_party/src/gcrypt/gcm.c @@ -34,7 +34,11 @@ #define GCM_VALIDATE( cond ) \ MBEDTLS_INTERNAL_VALIDATE( cond ) +#ifdef _WIN32 +#define LBLOCKSIZE 4 +#else #define LBLOCKSIZE __SIZEOF_LONG__ +#endif static void xorbytes( unsigned char *dst, const unsigned char *src, int n) { while(n > LBLOCKSIZE) { diff --git a/src/lib/third_party/src/gcrypt_light.c b/src/lib/third_party/src/gcrypt_light.c index 9c8a9e3f3..ecd4b6fc4 100644 --- a/src/lib/third_party/src/gcrypt_light.c +++ b/src/lib/third_party/src/gcrypt_light.c @@ -1,6 +1,8 @@ #include +#ifndef _WIN32 #include +#endif #include #include -- cgit v1.2.3