decoder/wildmidi: support version 0.2.3
In libwildmidi 0.2.3, the function WildMidi_SampledSeek() was removed, without changing the SO name. This patch adds an autoconf check for that function. Fall back to WildMidi_FastSeek() if WildMidi_SampledSeek() is not available anymore.
This commit is contained in:
@@ -950,6 +950,10 @@ if test x$enable_wildmidi = xyes; then
|
||||
AC_CHECK_LIB(WildMidi, WildMidi_Init,,
|
||||
AC_MSG_ERROR([libwildmidi not found]))
|
||||
|
||||
AC_CHECK_LIB(WildMidi, WildMidi_SampledSeek,
|
||||
[AC_DEFINE(HAVE_WILDMIDI_SAMPLED_SEEK, 1,
|
||||
[Defined if WildMidi_SampledSeek() is available (libwildmidi <= 0.2.2)])])
|
||||
|
||||
CFLAGS=$oldcflags
|
||||
LIBS=$oldlibs
|
||||
CPPFLAGS=$oldcppflags
|
||||
|
Reference in New Issue
Block a user