mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +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:
parent
4e6451d62a
commit
007717faf9
4 changed files with 5 additions and 16 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue