[libbluray-devel] commit: mingw: use ftello64() and fseeko64() (hpi1 )

git at videolan.org git at videolan.org
Sat Aug 21 00:58:16 CEST 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Aug 21 01:57:21 2010 +0300| [16398e93a53933857577abc90b19b62092a5e9bd] | committer: hpi1 

mingw: use ftello64() and fseeko64()

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=16398e93a53933857577abc90b19b62092a5e9bd
---

 src/file/file_posix.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/file/file_posix.c b/src/file/file_posix.c
index 70d99e7..451f369 100644
--- a/src/file/file_posix.c
+++ b/src/file/file_posix.c
@@ -41,12 +41,20 @@ static void file_close_linux(BD_FILE_H *file)
 
 static int64_t file_seek_linux(BD_FILE_H *file, int64_t offset, int32_t origin)
 {
+#if defined(_WIN32)
+    return fseeko64((FILE *)file->internal, offset, origin);
+#else
     return fseeko((FILE *)file->internal, offset, origin);
+#endif
 }
 
 static int64_t file_tell_linux(BD_FILE_H *file)
 {
+#if defined(_WIN32)
+    return ftello64((FILE *)file->internal);
+#else
     return ftello((FILE *)file->internal);
+#endif
 }
 
 static int file_eof_linux(BD_FILE_H *file)



More information about the libbluray-devel mailing list