Skip to content

Commit

Permalink
Checking if this #pragma pack works better on gcc 2.95.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 10, 2017
1 parent 2dbd784 commit 53c81e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/archiver_iso9660.c
Expand Up @@ -34,8 +34,6 @@
/* cache files smaller than this completely in memory */
#define ISO9660_FULLCACHEMAXSIZE 2048

/* !!! FIXME: this is going to cause trouble. */
#pragma pack(push) /* push current alignment to stack */
#pragma pack(1) /* set alignment to 1 byte boundary */

/* This is the format as defined by the standard
Expand Down Expand Up @@ -194,7 +192,8 @@ typedef struct
/** further fields not implemented */
} ISO9660ExtAttributeRec;

#pragma pack(pop) /* restore original alignment from stack */
#pragma pack() /* restore original alignment from stack */


typedef struct
{
Expand All @@ -218,7 +217,7 @@ typedef struct __ISO9660FileHandle
PHYSFS_uint64 len);
int (*seek)(struct __ISO9660FileHandle *filehandle, PHYSFS_sint64 offset);
void (*close)(struct __ISO9660FileHandle *filehandle);
/* !!! FIXME: anonymouse union is going to cause problems. */
/* !!! FIXME: anonymous union is going to cause problems. */
union
{
/* !!! FIXME: just use a memory PHYSFS_Io here, unify all this code. */
Expand Down

0 comments on commit 53c81e2

Please sign in to comment.