JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

Add support for the musl libc.

Open vimproved opened this issue 2 years ago • 0 comments
trafficstars

JUCE currently uses multiple glibc-specific features when JUCE_LINUX is defined. Instead, this pull request adds two new macros in juce_TargetPlatform.h: JUCE_GLIBC and JUCE_MUSL. JUCE_GLIBC is defined if the system is using glibc (detected through the GLIBC macro which should be defined on all glibc systems), and JUCE_MUSL is defined otherwise. This pull request also conditions the usage of execinfo.h (only available on glibc), the usage of the stat64 interface (being removed in the next release of musl, currently only available when _LARGEFILE64_SOURCE is defined), and the usage of _NL_ADDRESS_LANG_AB and _NL_ADDRESS_COUNTRY_AB2 (locales are not supported by musl) behind JUCE_GLIBC instead of JUCE_LINUX.

vimproved avatar Jun 15 '23 18:06 vimproved