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

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

View File

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