projects
/
dosrtxon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6952fc3
)
option to build without mikmod
author
John Tsiombikas
<nuclear@mutantstargoat.com>
Tue, 28 Aug 2018 15:30:55 +0000
(18:30 +0300)
committer
John Tsiombikas
<nuclear@mutantstargoat.com>
Tue, 28 Aug 2018 15:30:55 +0000
(18:30 +0300)
src/music.c
patch
|
blob
|
history
diff --git
a/src/music.c
b/src/music.c
index
f4327f5
..
11b9c44
100644
(file)
--- a/
src/music.c
+++ b/
src/music.c
@@
-1,5
+1,7
@@
#include <stdlib.h>
#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