mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix build with clang-cl
This commit is contained in:
parent
0ae12da3a7
commit
a8a1c67df0
6 changed files with 6 additions and 4 deletions
|
@ -311,7 +311,9 @@ if(NOT MSVC)
|
||||||
else()
|
else()
|
||||||
# Disable warnings about MS-specific _s variants of libc functions
|
# Disable warnings about MS-specific _s variants of libc functions
|
||||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
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_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_NDEBUG")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_NDEBUG")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
class PointerWrap;
|
class PointerWrap;
|
||||||
|
|
||||||
enum {
|
enum : u32 {
|
||||||
SCE_KERNEL_ERROR_OK = 0,
|
SCE_KERNEL_ERROR_OK = 0,
|
||||||
SCE_KERNEL_ERROR_ALREADY = 0x80000020,
|
SCE_KERNEL_ERROR_ALREADY = 0x80000020,
|
||||||
SCE_KERNEL_ERROR_BUSY = 0x80000021,
|
SCE_KERNEL_ERROR_BUSY = 0x80000021,
|
||||||
|
|
|
@ -72,7 +72,7 @@ enum {
|
||||||
PSP_THREAD_ATTR_USER = 0x80000000,
|
PSP_THREAD_ATTR_USER = 0x80000000,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum : u32 {
|
||||||
// Function exports.
|
// Function exports.
|
||||||
NID_MODULE_START = 0xD632ACDB,
|
NID_MODULE_START = 0xD632ACDB,
|
||||||
NID_MODULE_STOP = 0xCEE8593C,
|
NID_MODULE_STOP = 0xCEE8593C,
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
static std::atomic_flag threadRunningFlag;
|
static std::atomic_flag threadRunningFlag;
|
||||||
static std::thread inputThread;
|
static std::thread inputThread;
|
||||||
static std::atomic_bool focused = true;
|
static std::atomic_bool focused = ATOMIC_VAR_INIT(true);
|
||||||
|
|
||||||
inline static void ExecuteInputPoll() {
|
inline static void ExecuteInputPoll() {
|
||||||
if (host && (focused.load(std::memory_order_relaxed) || !g_Config.bGamepadOnlyFocused)) {
|
if (host && (focused.load(std::memory_order_relaxed) || !g_Config.bGamepadOnlyFocused)) {
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue