Skip to content

Commit

Permalink
Merge pull request #78272 from dalexeev/fix-bsd-feature-tag
Browse files Browse the repository at this point in the history
Fix `bsd` feature tag includes only "other BSDs"
  • Loading branch information
akien-mga committed Jun 15, 2023
2 parents a48285d + 2d2b2ca commit c0d8d91
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion platform/linuxbsd/os_linuxbsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c0d8d91

Please sign in to comment.