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

25 lines
493 B
C
Raw Normal View History

#include "libc.h"
#define FF_STR_INDIR(x) #x
#define FF_STR(x) FF_STR_INDIR(x)
#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
;
return NULL;
#else
return "Unknown Android libc";
#endif
}