Skip to content

Commit 6729aac

Browse files
committed
stdlib: include "Windows.h" before "Bcrypt.h"
The system header depends on Windows.h but does not include it itself. This results in base Windows types (e.g. ULONG) to be undefined. Include the header to include the needed typedefs.
1 parent a5ed7fc commit 6729aac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/stubs/Random.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#if defined(_WIN32) && !defined(__CYGWIN__)
2121
#define WIN32_LEAN_AND_MEAN
22+
#include <Windows.h>
2223
#include <Bcrypt.h>
2324
#pragma comment(lib, "Bcrypt.lib")
2425
#else

0 commit comments

Comments
 (0)