Merge revision 787 changes:

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

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1180@789 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-09-19 15:45:13 +00:00
parent e00a775e86
commit d4b2313ecf

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;