Repository navigation
fix(libSceNpTrophy2): include <cstddef> for std::size_t in the constants header - #10641
Conversation
…nts header NpTrophy2Constants.hpp uses std::size_t but includes only <cstdint>. libstdc++ happens to declare it through that header; libc++ does not, so guest_nptrophy2_tests fails to compile on macOS with "no type named 'size_t' in namespace 'std'". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed exact head e21db29. The public header uses std::size_t but 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.
|
Tested head
AI-assisted: yes (Claude Code); results above were run on this machine. |
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