Unverified Commit 79259fdb authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Update os-inl.h

parent cee35f7d
...@@ -238,9 +238,8 @@ SPDLOG_INLINE size_t filesize(FILE *f) ...@@ -238,9 +238,8 @@ SPDLOG_INLINE size_t filesize(FILE *f)
{ {
return static_cast<size_t>(st.st_size); 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; struct stat st;
if (::fstat(fd, &st) == 0) if (::fstat(fd, &st) == 0)
{ {
return static_cast<size_t>(st.st_size); return static_cast<size_t>(st.st_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment