summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2018-06-18 21:21:45 +0100
committerPatric Stout <truebrain@openttd.org>2018-07-19 20:24:17 +0200
commit63898f61b0ce4e321b5a7c39da2cfb5b16cfde5f (patch)
tree549ee0acd8d9af0f946cd8024e2d4839f82aeca8 /src/music
parent93469a92f20246d100d6ca8888ba621223e480ff (diff)
downloadopenttd-63898f61b0ce4e321b5a7c39da2cfb5b16cfde5f.tar.xz
Codechange: Rearrange struct packing defines and make MinGW use _Pragma pack style
Diffstat (limited to 'src/music')
-rw-r--r--src/music/dmusic.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/music/dmusic.cpp b/src/music/dmusic.cpp
index d48f51e85..56707a797 100644
--- a/src/music/dmusic.cpp
+++ b/src/music/dmusic.cpp
@@ -102,21 +102,19 @@ private:
bool ReadDLSWave(FILE *f, DWORD list_length, long offset);
};
-#pragma pack(2)
/** A RIFF chunk header. */
-struct ChunkHeader {
+PACK_N(struct ChunkHeader {
FOURCC type; ///< Chunk type.
DWORD length; ///< Length of the chunk, not including the chunk header itself.
-};
+}, 2);
/** Buffer format for a DLS wave download. */
-struct WAVE_DOWNLOAD {
+PACK_N(struct WAVE_DOWNLOAD {
DMUS_DOWNLOADINFO dlInfo;
ULONG ulOffsetTable[2];
DMUS_WAVE dmWave;
DMUS_WAVEDATA dmWaveData;
-};
-#pragma pack()
+}, 2);
struct PlaybackSegment {
uint32 start, end;