Fix VS2008 compile error in CefByteReadHandler::Seek due to missing abs(long long) function.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@786 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2012-09-19 15:43:33 +00:00
parent c0496ac63b
commit 10d1a71890
1 changed files with 4 additions and 0 deletions

View File

@ -31,7 +31,11 @@ int CefByteReadHandler::Seek(int64 offset, int whence) {
rv = 0;
break;
case SEEK_END: {
#if defined(OS_WIN)
int64 offset_abs = _abs64(offset);
#else
int64 offset_abs = abs(offset);
#endif
if (offset_abs > size_)
break;
offset_ = size_ - offset_abs;