diff --git a/test/posix-test.cc b/test/posix-test.cc index d7f60ed7..16da7de1 100644 --- a/test/posix-test.cc +++ b/test/posix-test.cc @@ -33,6 +33,7 @@ #ifdef _WIN32 # include +# undef max #endif #include "gtest-extra.h" @@ -97,7 +98,7 @@ errno_t test::sopen_s( return _sopen_s(pfh, filename, oflag, shflag, pmode); } -static LONGLONG max_file_size() {return std::numeric_limits::max(); } +static LONGLONG max_file_size() { return std::numeric_limits::max(); } BOOL test::GetFileSizeEx(HANDLE hFile, PLARGE_INTEGER lpFileSize) { BOOL result = GetFileSizeEx(hFile, lpFileSize);