Skip to content

Commit

Permalink
Fix the build with libdumb >= 2.0
Browse files Browse the repository at this point in the history
dumb_read_mod_quick has gained a new argument "restrict".
See kode54/dumb#53 for more details.
  • Loading branch information
dos1 committed Sep 16, 2018
1 parent d601ab7 commit 66926e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/Engine/sound_openal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66926e4

Please sign in to comment.