diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 168cf59b..84b99969 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -238,9 +238,8 @@ SPDLOG_INLINE size_t filesize(FILE *f) { return static_cast(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(st.st_size);