Skip to content

Commit b358bde

Browse files
committed
randomenv: consolidate WIN32 #ifdefs
Order includes. Remove // for xyz comments
1 parent fff80cd commit b358bde

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/randomenv.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,21 @@
1313
#include <compat/cpuid.h>
1414
#include <crypto/sha512.h>
1515
#include <support/cleanse.h>
16-
#include <util/time.h> // for GetTime()
17-
#ifdef WIN32
18-
#include <windows.h>
19-
#include <winreg.h>
20-
#endif
16+
#include <util/time.h>
2117

2218
#include <algorithm>
2319
#include <atomic>
20+
#include <cstdint>
21+
#include <cstring>
2422
#include <chrono>
2523
#include <climits>
2624
#include <thread>
2725
#include <vector>
2826

29-
#include <stdint.h>
30-
#include <string.h>
31-
#ifndef WIN32
27+
#ifdef WIN32
28+
#include <windows.h>
29+
#include <winreg.h>
30+
#else
3231
#include <sys/types.h> // must go before a number of other headers
3332
#include <fcntl.h>
3433
#include <netinet/in.h>

0 commit comments

Comments
 (0)