mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-10-07 02:43:32 +00:00
Fix build with clang-cl
This commit is contained in:
parent
0ae12da3a7
commit
a8a1c67df0
@ -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()
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
enum {
|
||||
enum : u32 {
|
||||
SCE_KERNEL_ERROR_OK = 0,
|
||||
SCE_KERNEL_ERROR_ALREADY = 0x80000020,
|
||||
SCE_KERNEL_ERROR_BUSY = 0x80000021,
|
||||
|
@ -72,7 +72,7 @@ enum {
|
||||
PSP_THREAD_ATTR_USER = 0x80000000,
|
||||
};
|
||||
|
||||
enum {
|
||||
enum : u32 {
|
||||
// Function exports.
|
||||
NID_MODULE_START = 0xD632ACDB,
|
||||
NID_MODULE_STOP = 0xCEE8593C,
|
||||
|
@ -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.
Loading…
Reference in New Issue
Block a user