diff --git a/src/abaddon.cpp b/src/abaddon.cpp index 7f4281d..23abfd3 100644 --- a/src/abaddon.cpp +++ b/src/abaddon.cpp @@ -1,4 +1,5 @@ #include "abaddon.hpp" +#include #include #include #include @@ -1153,7 +1154,32 @@ void Abaddon::on_window_hide() { } } +// clang-format off + +#ifdef __GLIBC__ + #ifndef _GNU_SOURCE + #define _GNU_SOURCE + #include + #ifndef __USE_GNU + #define __MUSL__ + #endif + #undef _GNU_SOURCE + #else + #include + #ifndef __USE_GNU + #define __MUSL__ + #endif + #endif +#endif + +// clang-format on + int main(int argc, char **argv) { +#ifdef __MUSL__ + char env[] = "LANG=C"; + putenv(env); +#endif + if (std::getenv("ABADDON_NO_FC") == nullptr) Platform::SetupFonts();