blob: bd73165c0074b1167903354f050f2f56b1d17880 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "libc.h"
const char* ffDetectLibc(FFLibcResult* result) {
result->name = "Unknown";
result->version = NULL;
#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__
result->name = "FBSD";
#ifdef FF_FBSD_VERSION
result->version = FF_FBSD_VERSION;
#endif
#endif
return NULL;
}
|