Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on OpenBSD #660

Merged
merged 1 commit into from
Feb 19, 2018
Merged

Fix build on OpenBSD #660

merged 1 commit into from
Feb 19, 2018

Conversation

hubslave
Copy link
Contributor

OpenBSD lacks strtod_l, so the Locale class won't compile. Looking around, this problem has apparently occurred in other environments as well (#388, #345), so I fixed it the same way they were fixed: by appending && !defined(__OpenBSD__) to the preprocessor condition gating the definition of the FMT_LOCALE macro.

OpenBSD doesn't have strtod_l() (at least under the default
headers), so the class Locale that the macro gates won't compile.
@vitaut vitaut merged commit e508e30 into fmtlib:master Feb 19, 2018
@vitaut
Copy link
Contributor

vitaut commented Feb 19, 2018

Merged, thanks!

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