fix(libSceNpTrophy2): include <cstddef> for std::size_t in the constants header #10641
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10641"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by maximilianfv on 2026-10-24T14:16:37Z.
What
core/libs/prx/libSceNpTrophy2/include/NpTrophy2Constants.hppdeclaresNP_TROPHY2_ICON_SIZE_NONEasstd::size_tbut includes only<cstdint>. libstdc++ happens to declarestd::size_tthrough that header; libc++ does not, so on macOStests/GuestNpTrophy2.cpp(guest_nptrophy2_tests) fails to compile:This adds
#include <cstddef>, the header that declaresstd::size_t. No behaviour changes on any host.Tested
Apple M1 Pro, macOS 27.0.1, Apple clang (libc++), x86_64 build under Rosetta 2.
mainalone does not build on macOS, so I built in a tree made of mugurc's macOS series (ci/macos-series-2,27e968974) merged withmainat522e32e3b6, plus other open macOS fixes, toggling only this change.ninja -k 0stops on the error above while compilingguest_nptrophy2_tests.ctest -R nptrophy2passes (guest_nptrophy2).Not tested on Linux or Windows; libstdc++ already provides
std::size_tthere, and the include is correct on every host.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T14:19:12Z.
Review: APPROVED
Reviewed exact head
e21db2912e. The public header usesstd::size_tbut did not include its declaring header; adding<cstddef>directly fixes the libc++ portability issue without changing behavior. The change is isolated to that include. Hosted eligibility, conventions, intake, labels and progress-report checks pass; product build/test jobs were skipped, so I am relying on the author-reported libc++ build and focused trophy test rather than claiming an independent build. I found no blocking issue.