From: John Tsiombikas Date: Tue, 28 Aug 2018 15:30:55 +0000 (+0300) Subject: option to build without mikmod X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=d7a6d41395a0c357f0c66675fbfe070fd74599d2;p=dosrtxon option to build without mikmod --- diff --git a/src/music.c b/src/music.c index f4327f5..11b9c44 100644 --- a/src/music.c +++ b/src/music.c @@ -1,5 +1,7 @@ #include #include "music.h" + +#ifndef NO_MUSIC #include "mikmod.h" #ifdef __WATCOMC__ @@ -150,3 +152,28 @@ static void MikMod_RegisterAllLoaders(void) ML_RegisterLoader(&load_xm); } #endif + +#else /* NO_MUSIC */ + +int music_open(const char *fname) +{ + return 0; +} + +void music_close(void) +{ +} + +void music_play(void) +{ +} + +void music_stop(void) +{ +} + +void music_update(void) +{ +} + +#endif