master ohmu/fastfetch-openbsd / src / detection / libc / libc_android.c
ohmu  ·  2026-10-15
 1#include "libc.h"
 2#include "common/debug.h"
 3#include "common/strutil.h"
 4
 5#include <features.h>
 6
 7const char* ffDetectLibc(FFLibcResult* result) {
 8#if __ANDROID_NDK__
 9    result->name = "ndk-bionic";
10    result->version = FF_STR(__NDK_MAJOR__) "." FF_STR(__NDK_MINOR__) "." FF_STR(__NDK_BUILD__)
11
12    #if __NDK_BETA__
13        "-beta" FF_STR(__NDK_BETA__)
14    #elif __NDK_CANARY__
15        "-canary"
16    #endif
17
18        ;
19    return nullptr;
20#else
21    FF_DEBUG("Unknown Android libc");
22    return "Unknown Android libc";
23#endif
24}