From f936e1bbbc361f52ba714e95eaed4db32f14baa0 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 22 Mar 2023 19:00:30 +0100 Subject: [PATCH] src/libsecp256k1/rng.h: Disable C4005 Warnings on windows temporarily. --- src/libsecp256k1/rng.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libsecp256k1/rng.h b/src/libsecp256k1/rng.h index 1f18261..13daf08 100644 --- a/src/libsecp256k1/rng.h +++ b/src/libsecp256k1/rng.h @@ -16,8 +16,13 @@ * Windows -> `BCryptGenRandom`(`bcrypt.h`). https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom */ #if defined(_WIN32) +/* Windows throws a bunch of "redefinition" warnings for these headers. + So we disable them temporarily */ +#pragma warning( push ) +#pragma warning( disable: 4005 ) #include #include +#pragma warning( pop ) #include #elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) #include