diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-04-24 00:26:25 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-04-24 00:26:25 +0000 |
commit | f2d0d0e3d56794855d1e9a1f157457b7225e8c88 (patch) | |
tree | c31ceb2e69ca6e51ebef7a3978bd7d7f900db6a1 /src/gtest-filepath.cc | |
parent | f204cd89e591e8cda022f4b471962c8556e19b8c (diff) | |
download | googletest-f2d0d0e3d56794855d1e9a1f157457b7225e8c88.tar.gz googletest-f2d0d0e3d56794855d1e9a1f157457b7225e8c88.tar.bz2 googletest-f2d0d0e3d56794855d1e9a1f157457b7225e8c88.zip |
Renames the POSIX wrappers (by Zhanyong Wan) and adds more targets to SConscript (by Vlad Losev).
Diffstat (limited to 'src/gtest-filepath.cc')
-rw-r--r-- | src/gtest-filepath.cc | 8 |
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 |