Skip to content

Commit

Permalink
Fixed 1598 - Mingwin build fails on src/audio/xaudio2/SDL_xaudio2.c
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 18, 2013
1 parent 888d807 commit 3f8df10
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/audio/xaudio2/SDL_xaudio2.c
Expand Up @@ -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;
Expand Down

0 comments on commit 3f8df10

Please sign in to comment.