Files
fastfetch/src/detection/libc/libc_android.c
T

25 lines
526 B
C
Raw Normal View History

#include "libc.h"
2026-10-03 11:57:46 +08:00
#include "common/debug.h"
2026-06-13 08:25:59 +08:00
#include "common/strutil.h"
#include <features.h>
2026-03-29 09:28:49 +08:00
const char* ffDetectLibc(FFLibcResult* result) {
#if __ANDROID_NDK__
result->name = "ndk-bionic";
result->version = FF_STR(__NDK_MAJOR__) "." FF_STR(__NDK_MINOR__) "." FF_STR(__NDK_BUILD__)
#if __NDK_BETA__
2026-03-29 09:28:49 +08:00
"-beta" FF_STR(__NDK_BETA__)
#elif __NDK_CANARY__
2026-03-29 09:28:49 +08:00
"-canary"
#endif
2026-03-29 09:28:49 +08:00
;
2026-07-10 18:08:04 +08:00
return nullptr;
#else
2026-10-03 11:57:46 +08:00
FF_DEBUG("Unknown Android libc");
return "Unknown Android libc";
#endif
}