Skip to content

Commit

Permalink
Resolved warning C4996: 'fileno': The POSIX name for this item is dep…
Browse files Browse the repository at this point in the history
…recated. Instead, use the ISO C and C++ conformant name: _fileno.
  • Loading branch information
matt77hias committed Apr 7, 2024
1 parent 910e696 commit 6e7e9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ int buffered_file::descriptor() const {
# endif
int fd = FMT_POSIX_CALL(fileno(file_));
#else
int fd = fileno(file_);
int fd = _fileno(file_);
#endif
if (fd == -1)
FMT_THROW(system_error(errno, FMT_STRING("cannot get file descriptor")));
Expand Down

0 comments on commit 6e7e9ff

Please sign in to comment.