Skip to content

Commit 621cfb7

Browse files
committed
random: consolidate WIN32 #ifdefs
Order includes Remove // for xyz comments
1 parent 75ec627 commit 621cfb7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/random.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,22 @@
88
#include <compat/cpuid.h>
99
#include <crypto/sha256.h>
1010
#include <crypto/sha512.h>
11-
#include <support/cleanse.h>
12-
#ifdef WIN32
13-
#include <windows.h>
14-
#include <wincrypt.h>
15-
#endif
1611
#include <logging.h>
1712
#include <randomenv.h>
18-
#include <support/allocators/secure.h>
1913
#include <span.h>
20-
#include <sync.h> // for Mutex
21-
#include <util/time.h> // for GetTimeMicros()
14+
#include <support/allocators/secure.h>
15+
#include <support/cleanse.h>
16+
#include <sync.h>
17+
#include <util/time.h>
2218

2319
#include <cmath>
2420
#include <cstdlib>
2521
#include <thread>
2622

27-
#ifndef WIN32
23+
#ifdef WIN32
24+
#include <windows.h>
25+
#include <wincrypt.h>
26+
#else
2827
#include <fcntl.h>
2928
#include <sys/time.h>
3029
#endif

0 commit comments

Comments
 (0)