commit 070cc0f6f296a19392f0924db9bfb01fa354bf4b Author: Jonathan Hamilton Date: Thu Apr 9 22:10:41 2015 -0700 Fix archive_iso9660 reading in msvc ISO9660FileFlags was the wrong size, as msvc expects the max size of bitfield types to be specified - set to uint8 instead of unsigned so it's correctly 1 byte. Without this, it would fail to read the archive as the headers would be read mis-aligned diff --git a/src/archiver_iso9660.c b/src/archiver_iso9660.c index e7d5362..60427c3 100644 --- a/src/archiver_iso9660.c +++ b/src/archiver_iso9660.c @@ -84,17 +88,21 @@ typedef struct PHYSFS_sint8 offset; } ISO9660FileTimestamp; typedef struct { - unsigned existence:1; - unsigned directory:1; - unsigned associated_file:1; - unsigned record:1; - unsigned protection:1; - unsigned reserved:2; - unsigned multiextent:1; + PHYSFS_uint8 existence:1; + PHYSFS_uint8 directory : 1; + PHYSFS_uint8 associated_file : 1; + PHYSFS_uint8 record:1; + PHYSFS_uint8 protection : 1; + PHYSFS_uint8 reserved : 2; + PHYSFS_uint8 multiextent : 1; } ISO9660FileFlags; typedef struct { PHYSFS_uint8 length;