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
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
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) {