diff options
author | fanquake <fanquake@gmail.com> | 2023-01-05 19:40:39 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-01-05 19:45:03 +0000 |
commit | b358bde020e2b9f6249fdbc500db6cb30f500f19 (patch) | |
tree | f32255260778f53c72a309868147367c0b8cc16d /src/randomenv.cpp | |
parent | fff80cd2488899a322f9e673930a00eb9ab5b165 (diff) | |
download | bitcoin-b358bde020e2b9f6249fdbc500db6cb30f500f19.tar.xz |
randomenv: consolidate WIN32 #ifdefs
Order includes.
Remove // for xyz comments
Diffstat (limited to 'src/randomenv.cpp')
-rw-r--r-- | src/randomenv.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/randomenv.cpp b/src/randomenv.cpp index 5b5b7c078d..8c00ffb818 100644 --- a/src/randomenv.cpp +++ b/src/randomenv.cpp @@ -13,22 +13,21 @@ #include <compat/cpuid.h> #include <crypto/sha512.h> #include <support/cleanse.h> -#include <util/time.h> // for GetTime() -#ifdef WIN32 -#include <windows.h> -#include <winreg.h> -#endif +#include <util/time.h> #include <algorithm> #include <atomic> +#include <cstdint> +#include <cstring> #include <chrono> #include <climits> #include <thread> #include <vector> -#include <stdint.h> -#include <string.h> -#ifndef WIN32 +#ifdef WIN32 +#include <windows.h> +#include <winreg.h> +#else #include <sys/types.h> // must go before a number of other headers #include <fcntl.h> #include <netinet/in.h> |