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

22 lines
458 B
C
Raw Normal View History

2023-10-09 13:28:30 +08:00
#include "libc.h"
const char* ffDetectLibc(FFLibcResult* result)
{
2024-11-03 18:00:45 +08:00
result->name = "Unknown";
result->version = NULL;
2024-11-03 11:47:24 +08:00
#ifdef __DragonFly__ // We define `__FreeBSD__` on DragonFly BSD for simplification
result->name = "DF";
#ifdef FF_DF_VERSION
result->version = FF_DF_VERSION;
#endif
#elif __FreeBSD__
2023-10-09 13:28:30 +08:00
result->name = "FBSD";
2024-11-03 11:47:24 +08:00
#ifdef FF_FBSD_VERSION
2023-10-09 13:28:30 +08:00
result->version = FF_FBSD_VERSION;
2024-11-03 11:47:24 +08:00
#endif
2023-10-09 13:28:30 +08:00
#endif
2024-11-03 18:00:45 +08:00
2023-10-09 13:28:30 +08:00
return NULL;
}