Resolved warning C4996: 'fileno': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _fileno. (#3930)

This commit is contained in:
Matthias Moulin 2024-04-11 20:13:57 +02:00 committed by GitHub
parent 116a9ce488
commit aa52eb765d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -188,6 +188,8 @@ int buffered_file::descriptor() const {
# undef fileno # undef fileno
# endif # endif
int fd = FMT_POSIX_CALL(fileno(file_)); int fd = FMT_POSIX_CALL(fileno(file_));
#elif defined(_WIN32)
int fd = _fileno(file_);
#else #else
int fd = fileno(file_); int fd = fileno(file_);
#endif #endif