Skip to content

Commit aa52eb7

Browse files
authored
Resolved warning C4996: 'fileno': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _fileno. (#3930)
1 parent 116a9ce commit aa52eb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/os.cc

+2
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ int buffered_file::descriptor() const {
188188
# undef fileno
189189
# endif
190190
int fd = FMT_POSIX_CALL(fileno(file_));
191+
#elif defined(_WIN32)
192+
int fd = _fileno(file_);
191193
#else
192194
int fd = fileno(file_);
193195
#endif

0 commit comments

Comments
 (0)