From 3f8df1097c73371010d0f55be674185911606252 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 17 Oct 2013 23:15:27 -0700 Subject: [PATCH] Fixed 1598 - Mingwin build fails on src/audio/xaudio2/SDL_xaudio2.c --- src/audio/xaudio2/SDL_xaudio2.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/audio/xaudio2/SDL_xaudio2.c b/src/audio/xaudio2/SDL_xaudio2.c index 4f378ea3d..557c3bb9a 100644 --- a/src/audio/xaudio2/SDL_xaudio2.c +++ b/src/audio/xaudio2/SDL_xaudio2.c @@ -48,6 +48,18 @@ /* Hidden "this" pointer for the audio functions */ #define _THIS SDL_AudioDevice *this +/* Fixes bug 1210 where some versions of gcc need named parameters */ +#ifdef __GNUC__ +#ifdef THIS +#undef THIS +#endif +#define THIS INTERFACE *p +#ifdef THIS_ +#undef THIS_ +#endif +#define THIS_ INTERFACE *p, +#endif + struct SDL_PrivateAudioData { IXAudio2 *ixa2;