Skip to content

Add libc++ < 20 fallback for floating-point scale value validation - #159

Merged
vaxerski merged 1 commit into
hyprwm:mainfrom
tagattie:freebsd-libcxx19
May 7, 2026
Merged

vaxerski merged 1 commit into
hyprwm:mainfrom
tagattie:freebsd-libcxx19

Conversation

@tagattie

@tagattie tagattie commented May 7, 2026

Copy link
Copy Markdown
Contributor

libc++ prior to version 20 does not implement std::from_chars for floating point types, which causes builds to fail on systems using older libc++ versions (e.g. FreeBSD 14/15).

Add a small fallback using std::stof for building with libc++ < 20.

While libstdc++, or libc++ 20 or later continue to use the existing std::from_chars implementation, this change restores compatibility with older libc++ versions.

libc++ prior to version 20 does not implement std::from_chars for
floating point types, which causes builds to fail on systems using
older libc++ versions (e.g. FreeBSD 14/15).

Add a small fallback using std::strtof for building with libc++ < 20.

While libstdc++, or libc++ 20 or later continue to use the existing
std::from_chars implementation, this change restores compatibility
with older libc++ versions.

@vaxerski vaxerski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outdated software b like

@vaxerski
vaxerski merged commit d6115ca into hyprwm:main May 7, 2026
1 check passed
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.

2 participants