1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 03:34:56 +02:00

src/libsecp256k1/rng.h: Disable C4005 Warnings on windows temporarily.

This commit is contained in:
Henrik Hautakoski 2023-03-22 19:00:30 +01:00
parent e94b19031f
commit f936e1bbbc

View file

@ -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 <windows.h>
#include <ntstatus.h>
#pragma warning( pop )
#include <bcrypt.h>
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
#include <sys/random.h>