shithub: choc

Download patch

ref: 4f762256093b821a274498663c0f3b87e2f17756
parent: 73ef8a7e9d895b7d5aba295d8242e93824bc5fb2
author: Alex Mayfield <alexmax2742@gmail.com>
date: Sat Feb 18 14:04:14 EST 2017

Make defines consistent

--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -1054,7 +1054,7 @@
         SDL_UnlockAudio();
     }
 
-#if _WIN32
+#if defined(_WIN32)
     I_MidiPipe_PlaySong(loops);
 #else
     Mix_PlayMusic(current_track_music, loops);
@@ -1092,7 +1092,7 @@
         return;
     }
 
-#if _WIN32
+#if defined(_WIN32)
     I_MidiPipe_StopSong();
 #else
     Mix_HaltMusic();
@@ -1116,7 +1116,7 @@
         return;
     }
 
-#ifndef _WIN32
+#if !defined(_WIN32)
     Mix_FreeMusic(music);
 #endif
 }
@@ -1210,7 +1210,7 @@
     // 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);