Make gtest-extra-test more portable

This commit is contained in:
Victor Zverovich
2023-11-24 10:09:21 -08:00
parent bea7ecc710
commit ffa5b14fe3
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -11,8 +11,8 @@
using fmt::file;
output_redirect::output_redirect(FILE* f) : file_(f) {
flush();
output_redirect::output_redirect(FILE* f, bool flush) : file_(f) {
if (flush) this->flush();
int fd = FMT_POSIX(fileno(f));
// Create a file object referring to the original file.
original_ = file::dup(fd);