From 15035b9423fca843ed7230eebbcdcfa4779c1d30 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Sun, 20 Jun 2021 23:29:25 +0200 Subject: [PATCH] [v0.98] Add FreeBSD support to README --- README.md | 3 ++- src/common/main.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f284523..3d92323 100644 --- a/README.md +++ b/README.md @@ -38,12 +38,13 @@ # 1. Support cpufetch supports x86, x86_64 (Intel and AMD) and ARM. -| Platform | x86_64 | ARM | Notes | +| OS | x86_64 / x86 | ARM | Notes | |:---------:|:------------------------:|:-------------------:|:-----------------:| | GNU/Linux | :heavy_check_mark: | :heavy_check_mark: | Best support | | Windows | :heavy_check_mark: | :x: | Some information may be missing.
Colors will be used if supported | | Android | :heavy_exclamation_mark: | :heavy_check_mark: | Some information may be missing.
Not tested under x86_64 | | macOS | :heavy_check_mark: | :x: | Some information may be missing.
Apple M1 support may be added
in the future (see [#47](https://github.com/Dr-Noob/cpufetch/issues/47))| +| FreeBSD | :heavy_check_mark: | :x: | Some information may be missing. | # 2. Installation ## 2.1 Installing from a package diff --git a/src/common/main.c b/src/common/main.c index 42c9679..1737d45 100644 --- a/src/common/main.c +++ b/src/common/main.c @@ -20,6 +20,8 @@ #else static const char* OS_STR = "Linux"; #endif +#elif __FreeBSD__ + static const char* OS_STR = "FreeBSD"; #elif _WIN32 static const char* OS_STR = "Windows"; #elif defined __APPLE__ || __MACH__