Libc (FreeBSD): detect FBSD version

This commit is contained in:
李通洲
2023-10-09 13:28:30 +08:00
parent 430da1578d
commit 2d2e0ddc6d
3 changed files with 21 additions and 10 deletions
+13
View File
@@ -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;
}
-9
View File
@@ -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";
}