Skip to content

gcc compatibility stuff#53

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

gcc compatibility stuff#53
3443e wants to merge 1 commit into
minecraft-linux:masterfrom
3443e:fix-gcc16-compat

Conversation

@3443e
Copy link
Copy Markdown

@3443e 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
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