[vlc-devel] commit: Small fix for Mingw64 compilation (Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Aug 19 15:37:51 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 19 15:37:21 2009 +0200| [b0464c6b8e8749acda1b834440343fcdc9641c77] | committer: Jean-Baptiste Kempf 

Small fix for Mingw64 compilation

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0464c6b8e8749acda1b834440343fcdc9641c77
---

 src/misc/block.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/block.c b/src/misc/block.c
index b2cf269..cbe15a8 100644
--- a/src/misc/block.c
+++ b/src/misc/block.c
@@ -303,7 +303,7 @@ ssize_t pread (int fd, void *buf, size_t count, off_t offset)
     if (handle == INVALID_HANDLE_VALUE)
         return -1;
 
-    OVERLAPPED olap = { .Offset = offset, .OffsetHigh = (offset >> 32), };
+    OVERLAPPED olap; olap.Offset = offset; olap.OffsetHigh = (offset >> 32);
     DWORD written;
     /* This braindead API will override the file pointer even if we specify
      * an explicit read offset... So do not expect this to mix well with




More information about the vlc-devel mailing list