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:
parent
e94b19031f
commit
f936e1bbbc
1 changed files with 5 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue