src/audio/xaudio2/SDL_xaudio2.c
changeset 7830 722c44cad199
parent 7719 31b5f9ff36ca
child 7923 d9ecdf71effb
child 8535 e8ee0708ef5c
equal deleted inserted replaced
7829:dd58730c3b4c 7830:722c44cad199
    45 #define INITGUID 1
    45 #define INITGUID 1
    46 #include <xaudio2.h>
    46 #include <xaudio2.h>
    47 
    47 
    48 /* Hidden "this" pointer for the audio functions */
    48 /* Hidden "this" pointer for the audio functions */
    49 #define _THIS   SDL_AudioDevice *this
    49 #define _THIS   SDL_AudioDevice *this
       
    50 
       
    51 /* Fixes bug 1210 where some versions of gcc need named parameters */
       
    52 #ifdef __GNUC__
       
    53 #ifdef THIS
       
    54 #undef THIS
       
    55 #endif
       
    56 #define THIS    INTERFACE *p
       
    57 #ifdef THIS_
       
    58 #undef THIS_
       
    59 #endif
       
    60 #define THIS_   INTERFACE *p,
       
    61 #endif
    50 
    62 
    51 struct SDL_PrivateAudioData
    63 struct SDL_PrivateAudioData
    52 {
    64 {
    53     IXAudio2 *ixa2;
    65     IXAudio2 *ixa2;
    54     IXAudio2SourceVoice *source;
    66     IXAudio2SourceVoice *source;