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