[Commits] SDL_mixer: Patched to compile with SMPEG headers vs SDL2 (thanks...

libsdl.org revision control commits-owner at libsdl.org
Mon May 29 08:18:50 PDT 2017


details:   https://hg.libsdl.org/SDL_mixer/rev/15571e1ac71f
changeset: 728:15571e1ac71f
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Mon May 29 11:17:51 2017 -0400
description:
Patched to compile with SMPEG headers vs SDL2 (thanks, Philipp!).

Fixes Bugzilla #1594.

diffstat:

 dynamic_mp3.h |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r 119df1a05eb7 -r 15571e1ac71f dynamic_mp3.h
--- a/dynamic_mp3.h	Wed May 24 16:41:47 2017 -0400
+++ b/dynamic_mp3.h	Mon May 29 11:17:51 2017 -0400
@@ -20,6 +20,13 @@
 */
 
 #ifdef MP3_MUSIC
+
+#if SDL_VERSION_ATLEAST(2, 0, 0)
+/* Forward declaration for SDL 2.0  because struct is not available there but
+   still used in a file included with smpeg.h. May not compile if missing. */
+typedef struct SDL_Overlay SDL_Overlay;
+#endif
+
 #include "smpeg.h"
 
 typedef struct {


More information about the commits mailing list