mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Fix compilation error on Android
This commit is contained in:
parent
1c476203fc
commit
494ba40c5e
@ -290,10 +290,10 @@ seekoff(streamoff off, ios_seekdir dir, ios_openmode which) {
|
|||||||
|
|
||||||
int whence;
|
int whence;
|
||||||
switch (dir) {
|
switch (dir) {
|
||||||
case ios_base::beg:
|
case std::ios_base::beg:
|
||||||
whence = SEEK_SET;
|
whence = SEEK_SET;
|
||||||
break;
|
break;
|
||||||
case ios_base::cur:
|
case std::ios_base::cur:
|
||||||
if (off == 0) {
|
if (off == 0) {
|
||||||
// Just requesting the current position, no need to void the buffer.
|
// Just requesting the current position, no need to void the buffer.
|
||||||
return AAsset_seek(_asset, 0, SEEK_CUR) - n;
|
return AAsset_seek(_asset, 0, SEEK_CUR) - n;
|
||||||
@ -305,7 +305,7 @@ seekoff(streamoff off, ios_seekdir dir, ios_openmode which) {
|
|||||||
}
|
}
|
||||||
whence = SEEK_CUR;
|
whence = SEEK_CUR;
|
||||||
break;
|
break;
|
||||||
case ios_base::end:
|
case std::ios_base::end:
|
||||||
whence = SEEK_END;
|
whence = SEEK_END;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user