From 48a6a45c896c40329b1d32ea3bc230da75d55992 Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Tue, 24 Mar 2026 18:13:17 -0700 Subject: [PATCH] set comparison operator in SceNp header for Windows Clang c++23 --- rpcs3/Emu/Cell/Modules/sceNp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/sceNp.h b/rpcs3/Emu/Cell/Modules/sceNp.h index 1bc0a345db..5a7e9cc542 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.h +++ b/rpcs3/Emu/Cell/Modules/sceNp.h @@ -5,6 +5,7 @@ #include "Emu/Cell/ErrorCodes.h" #include "util/shared_ptr.hpp" +#include #include error_code sceNpInit(u32 poolsize, vm::ptr poolptr); @@ -1285,6 +1286,11 @@ struct SceNpId u8 reserved[8]; }; +inline bool operator<(const SceNpId& lhs, const SceNpId& rhs) noexcept +{ + return std::memcmp(&lhs, &rhs, sizeof(SceNpId)) < 0; +} + CHECK_SIZE_ALIGN(SceNpId, 0x24, 1); // Online Name structure @@ -1697,6 +1703,11 @@ struct SceNpRoomId u8 reserved[8]; }; +inline bool operator<(const SceNpRoomId& lhs, const SceNpRoomId& rhs) noexcept +{ + return std::memcmp(&lhs, &rhs, sizeof(SceNpRoomId)) < 0; +} + struct SceNpMatchingAttr { vm::bptr next;