DEADSOFTWARE

ports: ported to emscripten
[flatwaifu.git] / src / sdlmixer / sound.c
index 93c1b6350f3cd9ae3935a1c4dde5071fcf2391e8..f8ef47efa7f1f7b41737091c62deb0fdb46860e4 100644 (file)
@@ -6,9 +6,10 @@
 #include "files.h" // F_findres
 #include "error.h"
 
-#include <SDL.h>
-#include <SDL_mixer.h>
+#include "SDL.h"
+#include "SDL_mixer.h"
 #include <assert.h>
+#include <string.h>
 
 #define TAG_MIX1 0x4d495831
 
@@ -141,7 +142,7 @@ static sdlmixer_snd *new_sdlmixer_snd (const void *data, dword len, dword rate,
 snd_t *S_get (int id) {
   void *handle;
   sdlmixer_snd *snd = NULL;
-  if (devinit != NULL) {
+  if (devinit) {
     handle = M_lock(id);
     if (handle != NULL) {
       void *data = handle;