diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-03-21 18:48:19 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-03-21 18:48:19 +0000 |
commit | 4d33206efeeacf0a20d6daabb0f5bcfa6da78a39 (patch) | |
tree | 23283a52f7dead12a340f96a194582fc3974fb07 /lib/common/Utils.cpp | |
parent | a3d70474128afaab98bbd6fa343760eb61178302 (diff) |
Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 to
64 bits.
Diffstat (limited to 'lib/common/Utils.cpp')
-rw-r--r-- | lib/common/Utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/common/Utils.cpp b/lib/common/Utils.cpp index 408eaa57..f45ed26b 100644 --- a/lib/common/Utils.cpp +++ b/lib/common/Utils.cpp @@ -163,8 +163,8 @@ void DumpStackBacktrace() // -------------------------------------------------------------------------- bool FileExists(const char *Filename, int64_t *pFileSize, bool TreatLinksAsNotExisting) { - struct stat st; - if(::lstat(Filename, &st) != 0) + EMU_STRUCT_STAT st; + if(EMU_LSTAT(Filename, &st) != 0) { if(errno == ENOENT) { @@ -208,8 +208,8 @@ bool FileExists(const char *Filename, int64_t *pFileSize, bool TreatLinksAsNotEx // -------------------------------------------------------------------------- int ObjectExists(const std::string& rFilename) { - struct stat st; - if(::stat(rFilename.c_str(), &st) != 0) + EMU_STRUCT_STAT st; + if(EMU_STAT(rFilename.c_str(), &st) != 0) { if(errno == ENOENT) { |