|
@@ -85,7 +85,8 @@ namespace theoraplayer
|
|
|
this->_openFile();
|
|
|
}
|
|
|
// fpos_t is not a scalar in Linux, for more info refer here: https://code.google.com/p/libtheoraplayer/issues/detail?id=6
|
|
|
-#ifdef _LINUX
|
|
|
+#ifdef __linux
|
|
|
+//_LINUX
|
|
|
fpos_t fpos = { 0 };
|
|
|
fpos.__pos = byte_index;
|
|
|
#else
|
|
@@ -109,9 +110,10 @@ namespace theoraplayer
|
|
|
{
|
|
|
return 0LL;
|
|
|
}
|
|
|
-#ifdef _LINUX
|
|
|
+#ifdef __linux
|
|
|
+//_LINUX
|
|
|
fpos_t pos;
|
|
|
- fgetpos(mFilePtr, &pos);
|
|
|
+ fgetpos(this->filePtr, &pos);
|
|
|
return (int64_t)pos.__pos;
|
|
|
#else
|
|
|
fpos_t pos;
|