mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 11:17:35 +02: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:
@ -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
|
||||||
|
Reference in New Issue
Block a user