mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-26 20:38:33 -06:00
set comparison operator in SceNp header for Windows Clang c++23
This commit is contained in:
parent
a03d4f69f8
commit
48a6a45c89
@ -5,6 +5,7 @@
|
||||
#include "Emu/Cell/ErrorCodes.h"
|
||||
#include "util/shared_ptr.hpp"
|
||||
|
||||
#include <cstring>
|
||||
#include <set>
|
||||
|
||||
error_code sceNpInit(u32 poolsize, vm::ptr<void> 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<SceNpMatchingAttr> next;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user