aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest-filepath.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtest-filepath.cc')
-rw-r--r--src/gtest-filepath.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gtest-filepath.cc b/src/gtest-filepath.cc
index 7ba6a6b7..3180d0d5 100644
--- a/src/gtest-filepath.cc
+++ b/src/gtest-filepath.cc
@@ -168,8 +168,8 @@ bool FilePath::FileOrDirectoryExists() const {
delete [] unicode;
return attributes != kInvalidFileAttributes;
#else
- posix::stat_struct file_stat;
- return posix::stat(pathname_.c_str(), &file_stat) == 0;
+ posix::StatStruct file_stat;
+ return posix::Stat(pathname_.c_str(), &file_stat) == 0;
#endif // _WIN32_WCE
}
@@ -195,8 +195,8 @@ bool FilePath::DirectoryExists() const {
result = true;
}
#else
- posix::stat_struct file_stat;
- result = posix::stat(path.c_str(), &file_stat) == 0 &&
+ posix::StatStruct file_stat;
+ result = posix::Stat(path.c_str(), &file_stat) == 0 &&
posix::IsDir(file_stat);
#endif // _WIN32_WCE