You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user