mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 17:41:41 +01:00
Libc (FreeBSD): detect FBSD version
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include "libc.h"
|
||||
|
||||
const char* ffDetectLibc(FFLibcResult* result)
|
||||
{
|
||||
result->name = "FBSD";
|
||||
|
||||
#ifdef FF_FBSD_VERSION
|
||||
result->version = FF_FBSD_VERSION;
|
||||
#else
|
||||
result->version = NULL;
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
#include "libc.h"
|
||||
|
||||
#define FF_STR_INDIR(x) #x
|
||||
#define FF_STR(x) FF_STR_INDIR(x)
|
||||
|
||||
const char* ffDetectLibc(FF_MAYBE_UNUSED FFLibcResult* result)
|
||||
{
|
||||
return "Not supported on this platform";
|
||||
}
|
||||
Reference in New Issue
Block a user