Fix build with clang-cl

This commit is contained in:
sorgts 2020-08-13 16:48:48 +02:00
parent 0ae12da3a7
commit a8a1c67df0
6 changed files with 6 additions and 4 deletions

View File

@ -311,7 +311,9 @@ if(NOT MSVC)
else()
# Disable warnings about MS-specific _s variants of libc functions
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-MP)
if (NOT CLANG)
add_compile_options(-MP)
endif()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_NDEBUG")
endif()

View File

@ -25,7 +25,7 @@
class PointerWrap;
enum {
enum : u32 {
SCE_KERNEL_ERROR_OK = 0,
SCE_KERNEL_ERROR_ALREADY = 0x80000020,
SCE_KERNEL_ERROR_BUSY = 0x80000021,

View File

@ -72,7 +72,7 @@ enum {
PSP_THREAD_ATTR_USER = 0x80000000,
};
enum {
enum : u32 {
// Function exports.
NID_MODULE_START = 0xD632ACDB,
NID_MODULE_STOP = 0xCEE8593C,

View File

@ -27,7 +27,7 @@
static std::atomic_flag threadRunningFlag;
static std::thread inputThread;
static std::atomic_bool focused = true;
static std::atomic_bool focused = ATOMIC_VAR_INIT(true);
inline static void ExecuteInputPoll() {
if (host && (focused.load(std::memory_order_relaxed) || !g_Config.bGamepadOnlyFocused)) {

Binary file not shown.

Binary file not shown.