summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-15 16:08:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-15 16:08:44 +0200
commitc0d8d91b15597209a1ca865c6ff4f84f06f7de86 (patch)
treea08e9fe4c0ab20d14f7d87d23e2e2410f076b695
parenta48285db7bb565083408cd55b7db6e7ece4efe85 (diff)
parent2d2b2cadfaf66dca6d27659718e461177c00081e (diff)
downloadredot-engine-c0d8d91b15597209a1ca865c6ff4f84f06f7de86.tar.gz
Merge pull request #78272 from dalexeev/fix-bsd-feature-tag
Fix `bsd` feature tag includes only "other BSDs"
-rw-r--r--platform/linuxbsd/os_linuxbsd.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/platform/linuxbsd/os_linuxbsd.cpp b/platform/linuxbsd/os_linuxbsd.cpp
index ebdbd061d1..35807875a5 100644
--- a/platform/linuxbsd/os_linuxbsd.cpp
+++ b/platform/linuxbsd/os_linuxbsd.cpp
@@ -496,11 +496,19 @@ bool OS_LinuxBSD::_check_internal_feature_support(const String &p_feature) {
return font_config_initialized;
}
#endif
+
+#ifndef __linux__
+ // `bsd` includes **all** BSD, not only "other BSD" (see `get_name()`).
+ if (p_feature == "bsd") {
+ return true;
+ }
+#endif
+
if (p_feature == "pc") {
return true;
}
- // Match against the specific OS (linux, freebsd, etc).
+ // Match against the specific OS (`linux`, `freebsd`, `netbsd`, `openbsd`).
if (p_feature == get_name().to_lower()) {
return true;
}