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

Include locale.h on any GNU libc platform #925

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Include locale.h on any GNU libc platform #925

merged 1 commit into from
Apr 17, 2024

Conversation

pinotree
Copy link
Contributor

@pinotree pinotree commented Jul 3, 2023

locale.h & locale_t are implemented by GNU libc (at least), so any OS based on it has them; hence, extend the check to use __GLIBC__ as alternative to __linux__.

Updates commit 7d82553 by bringing __GLIBC__ back in use.

Fixes commit 2a2ff9e by dropping the check for macOS (__APPLE__) when GNU libc is available; there is no GNU libc on macOS, so that check is always false.

locale.h & locale_t are implemented by GNU libc (at least), so any OS
based on it has them; hence, extend the check to use __GLIBC__ as
alternative to __linux__.

Updates commit 7d82553 by bringing
__GLIBC__ back in use.

Fixes commit 2a2ff9e by dropping the
check for macOS (__APPLE__) when GNU libc is available; there is no
GNU libc on macOS, so that check is always false.
@ddennedy ddennedy added this to the v7.24.0 milestone Apr 17, 2024
@ddennedy ddennedy merged commit 245b243 into mltframework:master Apr 17, 2024
@pinotree pinotree deleted the locale-glibc branch April 18, 2024 05:17
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