music_mod.c: add iobase members to the LMM_MREADER struct:
authorSam Lantinga <slouken@libsdl.org>
Mon, 16 Oct 2017 02:16:47 -0700
changeset 77607b8e286bc03
parent 775 2e69381c82fa
child 777 92882ef2ab81
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
     1.1 --- a/music_mod.c	Mon Oct 16 02:16:21 2017 -0700
     1.2 +++ b/music_mod.c	Mon Oct 16 02:16:47 2017 -0700
     1.3 @@ -144,6 +144,11 @@
     1.4  typedef struct
     1.5  {
     1.6      MREADER mr;
     1.7 +    /* struct MREADER in libmikmod <= 3.2.0-beta2
     1.8 +     * doesn't have iobase members. adding them here
     1.9 +     * so that if we compile against 3.2.0-beta2, we
    1.10 +     * can still run OK against 3.2.0b3 and newer. */
    1.11 +    long iobase, prev_iobase;
    1.12      Sint64 offset;
    1.13      Sint64 eof;
    1.14      SDL_RWops *src;