set comparison operator in SceNp header for Windows Clang c++23

This commit is contained in:
qurious-pixel 2026-03-24 18:13:17 -07:00 committed by GitHub
parent a03d4f69f8
commit 48a6a45c89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;