2
0
Эх сурвалжийг харах

Fix compilation error on Android

rdb 7 жил өмнө
parent
commit
494ba40c5e

+ 3 - 3
panda/src/express/virtualFileMountAndroidAsset.cxx

@@ -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: