Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #include <algorithm> to fix building with gcc 14 #20981

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Add #include <algorithm> to fix building with gcc 14 #20981

merged 1 commit into from
Nov 16, 2023

Conversation

kostadinsh
Copy link
Contributor

With gcc 14 some C++ Standard Library headers have been changed to no longer include other headers that were used internally by the library. In OpenRCT2's case it is the <algorithm> header.

Downstream Gentoo bug

GCC 14 porting guide

With gcc 14 some C++ Standard Library headers have been changed to no
longer include other headers that were used internally by the library.
In OpenRCT2's case it is the <algorithm> header.

Downstream Gentoo bug: https://bugs.gentoo.org/917016

GCC 14 porting guide: https://gcc.gnu.org/gcc-14/porting_to.html#header-dep-changes

Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
@janisozaur janisozaur enabled auto-merge (squash) November 16, 2023 20:25
@janisozaur janisozaur merged commit 11c4698 into OpenRCT2:develop Nov 16, 2023
21 checks passed
@janisozaur
Copy link
Member

I usually remember to test with GCC trunk when preparing release to avoid such errors, I have forgotten this time. Sorry about that.

@kostadinsh kostadinsh deleted the gcc-14 branch November 16, 2023 20:32
@Gymnasiast Gymnasiast added this to the v0.4.7 milestone Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants