mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-29 03:53:54 +00:00
Compare commits
No commits in common. "0a92d1d68400dca11e8ac584e597a17864312034" and "0f7b95ce475f5c51fcf446f2543c215a92fda717" have entirely different histories.
0a92d1d684
...
0f7b95ce47
@ -199,12 +199,6 @@ SPDLOG_INLINE bool path_exists(const filename_t &filename) SPDLOG_NOEXCEPT
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// avoid warning about unreachable statement at the end of filesize()
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4702)
|
||||
#endif
|
||||
|
||||
// Return file size according to open FILE* object
|
||||
SPDLOG_INLINE size_t filesize(FILE *f)
|
||||
{
|
||||
@ -214,7 +208,7 @@ SPDLOG_INLINE size_t filesize(FILE *f)
|
||||
}
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
int fd = ::_fileno(f);
|
||||
#if defined(_WIN64) // 64 bits
|
||||
#if _WIN64 // 64 bits
|
||||
__int64 ret = ::_filelengthi64(fd);
|
||||
if (ret >= 0)
|
||||
{
|
||||
@ -255,10 +249,6 @@ SPDLOG_INLINE size_t filesize(FILE *f)
|
||||
return 0; // will not be reached.
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
// Return utc offset in minutes or throw spdlog_ex on failure
|
||||
SPDLOG_INLINE int utc_minutes_offset(const std::tm &tm)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user