1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

SCons: Remove check_c_headers

• Can instead check for headers directly with `__has_include`, a C++17 feature
This commit is contained in:
Thaddeus Crews
2025-03-09 11:13:40 -05:00
parent 4e6451d62a
commit 007717faf9
4 changed files with 5 additions and 16 deletions

View File

@@ -76,7 +76,7 @@
#include <sys/utsname.h>
#include <unistd.h>
#ifdef HAVE_MNTENT
#if __has_include(<mntent.h>)
#include <mntent.h>
#endif
@@ -999,7 +999,7 @@ static String get_mountpoint(const String &p_path) {
return "";
}
#ifdef HAVE_MNTENT
#if __has_include(<mntent.h>)
dev_t dev = s.st_dev;
FILE *fd = setmntent("/proc/mounts", "r");
if (!fd) {