]> git.sesse.net Git - vlc/commitdiff
Small fix for Mingw64 compilation
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 19 Aug 2009 13:37:21 +0000 (15:37 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 19 Aug 2009 13:37:21 +0000 (15:37 +0200)
src/misc/block.c

index b2cf2692e022d70b17e202262b4ff0494a9dabfe..cbe15a805d8204d708df10c84dab0c4740dab2c0 100644 (file)
@@ -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