From 352b6ae49673878dec50f49f8d4c1969da292a5a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 12 Sep 2014 15:18:11 -0700 Subject: [PATCH] Workaround more Windows crap. --- test/posix-test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);