Skip to content

Include locale.h on any GNU libc platform#925

Merged
ddennedy merged 1 commit intomltframework:masterfrom
pinotree:locale-glibc
Apr 17, 2024
Merged

Include locale.h on any GNU libc platform#925
ddennedy merged 1 commit intomltframework:masterfrom
pinotree:locale-glibc

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