Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

common: stat64 is non-standard, hide on a random Unix

Jan Beichdbc84319b8e9
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 14cbcac6bb..c1838efb95 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -52,7 +52,7 @@
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
#endif
-#ifdef BSD4_4
+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__GLIBC__) && !defined(__UCLIBC__)
#define stat64 stat
#define fstat64 fstat
#endif