Skip to content

Commit 8b5919c

Browse files
committed
Resolved warning C4996: 'fileno': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _fileno.
1 parent 116a9ce commit 8b5919c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ int buffered_file::descriptor() const {
189189
# endif
190190
int fd = FMT_POSIX_CALL(fileno(file_));
191191
#else
192-
int fd = fileno(file_);
192+
int fd = _fileno(file_);
193193
#endif
194194
if (fd == -1)
195195
FMT_THROW(system_error(errno, FMT_STRING("cannot get file descriptor")));

0 commit comments

Comments
 (0)