Fix build failure when not using fcntl with -Werror (#1990)

This commit is contained in:
Ashton Fagg
2020-11-06 15:39:59 -08:00
committed by GitHub
parent a30b279bad
commit 506ff320f2
2 changed files with 3 additions and 11 deletions
+1 -1
View File
@@ -194,12 +194,12 @@ int(test::fileno)(FILE* stream) {
# define EXPECT_EQ_POSIX(expected, actual)
#endif
#if FMT_USE_FCNTL
static void write_file(fmt::cstring_view filename, fmt::string_view content) {
fmt::buffered_file f(filename, "w");
f.print("{}", content);
}
#if FMT_USE_FCNTL
using fmt::file;
TEST(UtilTest, GetPageSize) {