mirror of
https://github.com/uowuo/abaddon.git
synced 2024-11-10 06:00:10 +00:00
Revert "add workaround for musl (#317)"
This reverts commit 7af15b326d
.
This commit is contained in:
parent
7af15b326d
commit
8fc4d0334f
@ -1,5 +1,4 @@
|
||||
#include "abaddon.hpp"
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <spdlog/cfg/env.h>
|
||||
@ -1154,32 +1153,7 @@ void Abaddon::on_window_hide() {
|
||||
}
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
|
||||
#ifdef __GLIBC__
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#include <features.h>
|
||||
#ifndef __USE_GNU
|
||||
#define __MUSL__
|
||||
#endif
|
||||
#undef _GNU_SOURCE
|
||||
#else
|
||||
#include <features.h>
|
||||
#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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user