[libbluray-devel] define fseek/ftell for win32

Erik Van Grunderbeeck git at videolan.org
Tue Mar 29 15:17:40 CEST 2011


libbluray | branch: master | Erik Van Grunderbeeck <erik at arawix.com> | Tue Mar 22 10:56:10 2011 +0100| [9530578b86a283b76c993cd7298ee17a4175fb57] | committer: hpi1

define fseek/ftell for win32

Signed-off-by: Erik Van Grunderbeeck <erik at arawix.com>

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

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

diff --git a/src/file/file_posix.c b/src/file/file_posix.c
index 86ca59a..6ddf2f8 100644
--- a/src/file/file_posix.c
+++ b/src/file/file_posix.c
@@ -34,6 +34,11 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#ifdef WIN32
+#define	ftello	_ftelli64
+#define	fseeko	_fseeki64
+#endif	//	#ifdef WIN32
+
 static void file_close_linux(BD_FILE_H *file)
 {
     if (file) {



More information about the libbluray-devel mailing list