diff options
Diffstat (limited to 'src/midifile.c')
-rw-r--r-- | src/midifile.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/midifile.c b/src/midifile.c index bd935ca1..e9af051c 100644 --- a/src/midifile.c +++ b/src/midifile.c @@ -28,7 +28,6 @@ #include <string.h> #include <assert.h> -#include "doomdef.h" #include "doomtype.h" #include "i_swap.h" #include "midifile.h" @@ -37,6 +36,11 @@ #define TRACK_CHUNK_ID "MTrk" #define MAX_BUFFER_SIZE 0x10000 +// haleyjd 09/09/10: packing required +#ifdef _MSC_VER +#pragma pack(push, 1) +#endif + typedef struct { byte chunk_id[4]; @@ -51,6 +55,11 @@ typedef struct unsigned short time_division; } PACKEDATTR midi_header_t; +// haleyjd 09/09/10: packing off. +#ifdef _MSC_VER +#pragma pack(pop) +#endif + typedef struct { // Length in bytes: |