Fixed 1598 - Mingwin build fails on src/audio/xaudio2/SDL_xaudio2.c

This commit is contained in:
Sam Lantinga 2013-10-17 23:15:27 -07:00
parent 888d807a71
commit 3f8df1097c
1 changed files with 12 additions and 0 deletions

View File

@ -48,6 +48,18 @@
/* Hidden "this" pointer for the audio functions */ /* Hidden "this" pointer for the audio functions */
#define _THIS SDL_AudioDevice *this #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 struct SDL_PrivateAudioData
{ {
IXAudio2 *ixa2; IXAudio2 *ixa2;