mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Disable vulkan in Windows build when HAVE_VULKAN is off and other cmake build fixes. (#11118)
* Make WolfSSL build support multi-config generator. Fix a build error in Windows when using QT's moc. Disable vulkan in Windows build when HAVE_VULKAN is off. * add WIN32_LEAN_AND_MEAN definition to VS project. add HAVE_VULKAN definition to VS project. Define NTSTATUS in main.cpp.
This commit is contained in:
parent
8b3ed7b599
commit
05881ffa62
9 changed files with 27 additions and 26 deletions
|
@ -26,6 +26,15 @@
|
|||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include "util/dyn_lib.hpp"
|
||||
|
||||
// TODO(cjj19970505@live.cn)
|
||||
// When compiling with WIN32_LEAN_AND_MEAN definition
|
||||
// NTSTATUS is defined in CMake build but not in VS build
|
||||
// May be caused by some different header pre-inclusion between CMake and VS configurations.
|
||||
#if !defined(NTSTATUS)
|
||||
// Copied from ntdef.h
|
||||
typedef _Return_type_success_(return >= 0) LONG NTSTATUS;
|
||||
#endif
|
||||
DYNAMIC_IMPORT("ntdll.dll", NtQueryTimerResolution, NTSTATUS(PULONG MinimumResolution, PULONG MaximumResolution, PULONG CurrentResolution));
|
||||
DYNAMIC_IMPORT("ntdll.dll", NtSetTimerResolution, NTSTATUS(ULONG DesiredResolution, BOOLEAN SetResolution, PULONG CurrentResolution));
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue