mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-29 05:11:05 +00:00
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:
parent
116a9ce488
commit
aa52eb765d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user