mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
Update os-inl.h
This commit is contained in:
parent
cee35f7d24
commit
79259fdb3f
@ -238,9 +238,8 @@ SPDLOG_INLINE size_t filesize(FILE *f)
|
||||
{
|
||||
return static_cast<size_t>(st.st_size);
|
||||
}
|
||||
#else // unix 32 bits or cygwin
|
||||
#else // other unix or linux 32 bits or cygwin
|
||||
struct stat st;
|
||||
|
||||
if (::fstat(fd, &st) == 0)
|
||||
{
|
||||
return static_cast<size_t>(st.st_size);
|
||||
|
Loading…
Reference in New Issue
Block a user