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 10, 2024
1 parent 116a9ce commit 7874ded
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/os.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ int buffered_file::descriptor() const {
# undef fileno
# endif
int fd = FMT_POSIX_CALL(fileno(file_));
#elif defined(_WIN32)
int fd = _fileno(file_);
#else
int fd = fileno(file_);
#endif
Expand Down

0 comments on commit 7874ded

Please sign in to comment.