Skip to content

Add libc++ < 20 fallback for floating-point strToNumber#104

Merged
vaxerski merged 2 commits intohyprwm:mainfrom
tagattie:freebsd-libcxx19
Mar 22, 2026
Merged

Add libc++ < 20 fallback for floating-point strToNumber#104
vaxerski merged 2 commits intohyprwm:mainfrom
tagattie:freebsd-libcxx19

Conversation

@tagattie
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).

Add a small fallback using strtof/strtod/strtold 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.

Also, this PR include an addition of missing includes in tests/os/Process.cpp for signal definitions.

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).

Add a small fallback using strtof/strtod/strtold 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.
Copy link
Copy Markdown
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

thanks

@vaxerski vaxerski merged commit cb4e152 into hyprwm:main Mar 22, 2026
4 checks 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