shithub: choc

Download patch

ref: 28cb8e96cabe2d87a86b5045c4d38dc81d9137ac
parent: 10ebb15f419fa9e71db2abb21640b83d8aaaba29
author: Fabian Greffrath <fabian@greffrath.com>
date: Sat Mar 16 05:10:39 EDT 2019

sound: CPP does not support lazy evaluation

The past few commits have been more like a CPP tutorial...

--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -194,10 +194,11 @@
         }
     }
 
-#if defined(SDL_MIXER_VERSION_ATLEAST) && \
-    SDL_MIXER_VERSION_ATLEAST(2,0,2)
+#if defined(SDL_MIXER_VERSION_ATLEAST)
+#if SDL_MIXER_VERSION_ATLEAST(2,0,2)
     // Initialize SDL_Mixer for MIDI music playback
     Mix_Init(MIX_INIT_MID);
+#endif
 #endif
 
     // Once initialization is complete, the temporary Timidity config