From dcd590b9deacab89c0e0fd1f18e20967cf4c4ce7 Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 7 Aug 2019 00:59:29 +0300 Subject: [PATCH] fstat64(..) -> ::fstat64(..) --- include/spdlog/details/os-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }