gcc compatibility stuff#53
Open
3443e wants to merge 1 commit into
Open
Conversation
3443e
commented
May 14, 2026
- Renamed sched_policy member to sched_policy_val to avoid collision with enum class name (breaks in gcc)
- Renamed ai_flags member to ai_flags_val for the same reason
- Updated all usages in network.cpp and pthreads.cpp accordingly
- Fixed pthread_condattr_init to use correct field names instead of brace-init
- Addded generic T* constructor to shimmed_symbol for GCC 16 template deduction
- Replaced vector brace-init block with emplace_back calls
- Wrapped index/rindex in lambdas since they are builtins with multiple overloads
- Rename sched_policy member to sched_policy_val to avoid collision with enum class name (now a hard error in GCC) - Rename ai_flags member to ai_flags_val for the same reason - Update all usages in network.cpp and pthreads.cpp accordingly - Fix pthread_condattr_init to use correct field names instead of brace-init - Add generic T* constructor to shimmed_symbol for GCC 16 template deduction - Replace vector brace-init block with emplace_back calls - Wrap index/rindex in lambdas since they are builtins with multiple overloads
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.