From 095ceec926bb9c9f1feb13382960b76cf473e9bb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 16 Oct 2017 02:16:47 -0700 Subject: [PATCH] music_mod.c: add iobase members to the LMM_MREADER struct: struct MREADER in libmikmod <= 3.2.0-beta2 doesn't have iobase members. adding them here so that if we compile against 3.2.0-beta2, we can still run OK against 3.2.0b3 and newer. --- music_mod.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/music_mod.c b/music_mod.c index b3529828..50ea8625 100644 --- a/music_mod.c +++ b/music_mod.c @@ -144,6 +144,11 @@ void MOD_setvolume(MODULE *music, int volume) typedef struct { MREADER mr; + /* struct MREADER in libmikmod <= 3.2.0-beta2 + * doesn't have iobase members. adding them here + * so that if we compile against 3.2.0-beta2, we + * can still run OK against 3.2.0b3 and newer. */ + long iobase, prev_iobase; Sint64 offset; Sint64 eof; SDL_RWops *src;