Workaround more Windows crap.

This commit is contained in:
Victor Zverovich 2014-09-12 15:18:11 -07:00
parent 74169e4b5d
commit 352b6ae496

View File

@ -33,6 +33,7 @@
#ifdef _WIN32
# include <io.h>
# 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<LONGLONG>::max(); }
static LONGLONG max_file_size() { return std::numeric_limits<LONGLONG>::max(); }
BOOL test::GetFileSizeEx(HANDLE hFile, PLARGE_INTEGER lpFileSize) {
BOOL result = GetFileSizeEx(hFile, lpFileSize);