Repository navigation
ps2xTest: include <cstring> for std::memcpy - #449
Open
Fructose0517 wants to merge 1 commit into
Open
Fructose0517 wants to merge 1 commit into
Fructose0517 wants to merge 1 commit into
Conversation
code_generator_tests.cpp calls std::memcpy without including <cstring>; MSVC's headers pull it in, libstdc++'s and libc++'s do not, so the Linux gcc and clang CI jobs stop at this file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ps2xTest/src/code_generator_tests.cppcallsstd::memcpy(line 1964, added in #359) without including<cstring>. MSVC's standard headers pull it in through other includes; libstdc++ and libc++ do not, so onmain(ccc1655) both Linux CI jobs fail at Build:This adds
#include <cstring>to the file.Tests
Linux, GCC 13.3: the file compiles with the change and fails with the error above without it (
-std=c++20, same include paths as the test library). I did not build and run the whole Linux suite on this machine (no FFmpeg development packages for the runtime); Clang was not tried locally, the CI log shows it fails on the same line.The Windows CI job fails on
mainfor a separate reason (__attribute__in the GS files under MSVC); that has its own small PR. A third one pins ImGuiFileDialog, whosemasterno longer has the APIps2xStudio/src/GUI.cppuses; the Linux jobs probably need that one too to go green (I could not check it here).🤖 Generated with Claude Code