commit 4f762256093b821a274498663c0f3b87e2f17756
Author: Alex Mayfield <alexmax2742@gmail.com>
AuthorDate: Sat Feb 18 19:04:14 2017 -0500
Commit: Alex Mayfield <alexmax2742@gmail.com>
CommitDate: Sat Feb 18 19:04:14 2017 -0500
Make defines consistent
---
src/i_sdlmusic.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/i_sdlmusic.c b/src/i_sdlmusic.c
index b23c3848..156dcb29 100644
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -1054,7 +1054,7 @@ static void I_SDL_PlaySong(void *handle, boolean looping)
SDL_UnlockAudio();
}
-#if _WIN32
+#if defined(_WIN32)
I_MidiPipe_PlaySong(loops);
#else
Mix_PlayMusic(current_track_music, loops);
@@ -1092,7 +1092,7 @@ static void I_SDL_StopSong(void)
return;
}
-#if _WIN32
+#if defined(_WIN32)
I_MidiPipe_StopSong();
#else
Mix_HaltMusic();
@@ -1116,7 +1116,7 @@ static void I_SDL_UnRegisterSong(void *handle)
return;
}
-#ifndef _WIN32
+#if !defined(_WIN32)
Mix_FreeMusic(music);
#endif
}
@@ -1210,7 +1210,7 @@ static void *I_SDL_RegisterSong(void *data, int len)
// by now, but Mix_SetMusicCMD() only works with Mix_LoadMUS(), so
// we have to generate a temporary file.
-#ifdef _WIN32
+#if defined(_WIN32)
music = I_MidiPipe_RegisterSong(filename);
#else
music = Mix_LoadMUS(filename);