diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 76beb00d..9c228cc0 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -216,7 +216,7 @@ SPDLOG_INLINE size_t filesize(FILE *f) // 64 bits(but not in osx or cygwin, where fstat64 is deprecated) #if !defined(__FreeBSD__) && !defined(__APPLE__) && (defined(__x86_64__) || defined(__ppc64__)) && !defined(__CYGWIN__) struct stat64 st; - if (fstat64(fd, &st) == 0) + if (::fstat64(fd, &st) == 0) { return static_cast(st.st_size); }