Skip to content

fix(macos): static inline const for wxMediaState constants (AppleClang 21)#486

Merged
BenJule merged 1 commit into
masterfrom
fix/macos26-mediastate-constexpr
Jun 6, 2026
Merged

fix(macos): static inline const for wxMediaState constants (AppleClang 21)#486
BenJule merged 1 commit into
masterfrom
fix/macos26-mediastate-constexpr

Conversation

@BenJule

@BenJule BenJule commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Closes #485

macOS 26 (AppleClang 21) rejects static constexpr wxMediaState MEDIASTATE_* = (wxMediaState)N (cast not constexpr). Switch to static inline const — valid everywhere, restores a fork patch dropped in #476. Only macOS 26 was affected.

…g 21)

macOS 26 / Xcode 26.4 (AppleClang 21) rejects
  static constexpr wxMediaState MEDIASTATE_* = (wxMediaState) N;
with 'constexpr variable must be initialized by a constant expression' —
the C-style cast of an int to the enum is not a constant expression under
stricter AppleClang 21. Use 'static inline const' (valid everywhere, no
constexpr requirement). Restores a fork patch dropped in the 2.7.1 update
(#476); surfaced on the macOS 26 RC build.
@github-actions github-actions Bot added the platform: macos macOS-specific issue label Jun 6, 2026
@github-actions github-actions Bot added this to the v02.07.00-dev milestone Jun 6, 2026
@github-actions github-actions Bot added area: ui User interface / wxWidgets area: slicing Slicing engine, toolpath generation labels Jun 6, 2026
@BenJule BenJule merged commit 7354675 into master Jun 6, 2026
8 of 9 checks passed
@BenJule BenJule deleted the fix/macos26-mediastate-constexpr branch June 6, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: slicing Slicing engine, toolpath generation area: ui User interface / wxWidgets platform: macos macOS-specific issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS 26 build fails: constexpr wxMediaState casts rejected by AppleClang 21

1 participant