From 66926e4a368dd79acd9c9d7719a2cbd83bae35ff Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Sun, 16 Sep 2018 18:52:03 +0200 Subject: [PATCH] Fix the build with libdumb >= 2.0 dumb_read_mod_quick has gained a new argument "restrict". See https://github.com/kode54/dumb/issues/53 for more details. --- source/Engine/sound_openal.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Engine/sound_openal.cpp b/source/Engine/sound_openal.cpp index 4603f73..c1192d4 100644 --- a/source/Engine/sound_openal.cpp +++ b/source/Engine/sound_openal.cpp @@ -87,7 +87,11 @@ DUH_SIGRENDERER * DUMBopen_memory(const ALubyte *data, ALuint length, int fromTr duh = dumb_read_s3m_quick(df); break; case 3: +#if (DUMB_MAJOR_VERSION) >= 2 + duh = dumb_read_mod_quick(df, 0); +#else duh = dumb_read_mod_quick(df); +#endif break; default: break;