Skip to content

Commit

Permalink
music_mikmod.c: handle libmikmod-3.2.0-beta2 when not dynamic loading
Browse files Browse the repository at this point in the history
libmikmod-3.2.0-beta2 is _still_ around and doesn't have MikMod_free()
  • Loading branch information
sezero committed May 11, 2018
1 parent c6fa5cf commit fcf93e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion music_mikmod.c
Expand Up @@ -119,7 +119,8 @@ static int MIKMOD_Load()
mikmod.MikMod_free = free;
}
#else
#if LIBMIKMOD_VERSION < ((3<<16)|(2<<8))
#if (LIBMIKMOD_VERSION < 0x030200) || !defined(DMODE_NOISEREDUCTION)
/* libmikmod 3.2.0-beta2 or older */
mikmod.MikMod_free = free;
#else
mikmod.MikMod_free = MikMod_free;
Expand Down

0 comments on commit fcf93e2

Please sign in to comment.