summaryrefslogtreecommitdiff
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
authorGravatar Jan Beich2016-10-10 02:47:42 +0000
committerGravatar Jan Beich2016-10-27 23:28:29 +0000
commit51f92f0e4e688104daf9abdddbd1fd2d6bcef30d (patch)
tree485f8d677c4d6c12dcb42f513881f48cbbe396c7 /src/common/file_util.cpp
parentcommon: only FreeBSD has thread affinity compatible with Linux (diff)
downloadyuzu-51f92f0e4e688104daf9abdddbd1fd2d6bcef30d.tar.gz
yuzu-51f92f0e4e688104daf9abdddbd1fd2d6bcef30d.tar.xz
yuzu-51f92f0e4e688104daf9abdddbd1fd2d6bcef30d.zip
common: stat64 is non-standard, hide on a random Unix
src/common/file_util.cpp:79:19: error: variable has incomplete type 'struct stat64' struct stat64 file_info; ^ src/common/file_util.cpp:79:12: note: forward declaration of 'stat64' struct stat64 file_info; ^ src/common/file_util.cpp:99:19: error: variable has incomplete type 'struct stat64' struct stat64 file_info; ^ src/common/file_util.cpp:99:12: note: forward declaration of 'stat64' struct stat64 file_info; ^ src/common/file_util.cpp:342:19: error: variable has incomplete type 'struct stat64' struct stat64 buf; ^ src/common/file_util.cpp:342:12: note: forward declaration of 'stat64' struct stat64 buf; ^ src/common/file_util.cpp:359:19: error: variable has incomplete type 'struct stat64' struct stat64 buf; ^ src/common/file_util.cpp:359:12: note: forward declaration of 'stat64' struct stat64 buf; ^ 4 errors generated.
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r--src/common/file_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 14cbcac6b..c1838efb9 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -52,7 +52,7 @@
52#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) 52#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
53#endif 53#endif
54 54
55#ifdef BSD4_4 55#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__GLIBC__) && !defined(__UCLIBC__)
56#define stat64 stat 56#define stat64 stat
57#define fstat64 fstat 57#define fstat64 fstat
58#endif 58#endif