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

Don't include xlocale.h on Linux without glibc #1165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hannesbraun
Copy link

@hannesbraun hannesbraun commented Dec 7, 2024

For glibc based systems, xlocale.h is already excluded. On Linux distributions with musl libc (for example Alpine Linux), xlocale.h is unavailable as well. As there is no macro to detect musl, my suggested fix would be to rely on __linux__ and assume that xlocale.h is not required on Linux systems in general. I left the check for __GLIBC__ there in case __linux__ is not available (for whatever reason).

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