Skip to content

gcc compatibility stuff - #53

Closed
3443e wants to merge 1 commit into
minecraft-linux:masterfrom
3443e:fix-gcc16-compat
Closed

3443e wants to merge 1 commit into
minecraft-linux:masterfrom
3443e:fix-gcc16-compat

Conversation

@3443e

@3443e 3443e commented May 14, 2026

Copy link
Copy Markdown
  • 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
@3443e 3443e closed this by deleting the head repository Jul 24, 2026
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.

1 participant