From 79259fdb3f57283f65185a8e41840968dae4043c Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sat, 16 Nov 2019 13:23:00 +0200 Subject: [PATCH] Update os-inl.h --- include/spdlog/details/os-inl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);