mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-23 22:22:05 +08:00
Fix warning about testing _WIN64 which might be undefined
This warning is disabled by default, but is pretty useful and worth enabling for MSVC, just as -Wundef for gcc, so fix it in Win32 build.
This commit is contained in:
parent
db484cc4b8
commit
ff5221b693
@ -214,7 +214,7 @@ SPDLOG_INLINE size_t filesize(FILE *f)
|
||||
}
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
int fd = ::_fileno(f);
|
||||
#if _WIN64 // 64 bits
|
||||
#if defined(_WIN64) // 64 bits
|
||||
__int64 ret = ::_filelengthi64(fd);
|
||||
if (ret >= 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user