mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix mingw build (#2215)
* v3Os: include <windows.h> instead of <winnt.h> The windows.h header file should be included prior to any other headers, in order to ensure all definitions are available. By only including some headers, such as winnt.h, many "undefined symbol" messages are generated. Include "windows.h" to fix the build on msys2 under mingw64. Signed-off-by: Sean Cross <[email protected]> * configure: check for bcrypt and psapi on windows These two libraries must be linked in order to have access to BCryptGenRandom and GetProcessMemoryInfo respectively. Signed-off-by: Sean Cross <[email protected]>
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#if defined(_WIN32) || defined(__MINGW32__)
|
||||
# include <winnt.h> // LONG for bcrypt.h on MINGW
|
||||
# include <windows.h> // LONG for bcrypt.h on MINGW
|
||||
# include <bcrypt.h> // BCryptGenRandom
|
||||
# include <chrono>
|
||||
# include <direct.h> // mkdir
|
||||
|
||||
Reference in New Issue
Block a user