src/audio/xaudio2/SDL_xaudio2.c
changeset 6044 35448a5ea044
parent 5636 44bfdab5eaf1
child 6138 4c64952a58fb
     1.1 --- a/src/audio/xaudio2/SDL_xaudio2.c	Mon Oct 31 03:06:32 2011 -0400
     1.2 +++ b/src/audio/xaudio2/SDL_xaudio2.c	Mon Oct 31 05:56:58 2011 -0400
     1.3 @@ -19,14 +19,15 @@
     1.4    3. This notice may not be removed or altered from any source distribution.
     1.5  */
     1.6  #include "SDL_config.h"
     1.7 +
     1.8 +#if SDL_AUDIO_DRIVER_XAUDIO2
     1.9 +
    1.10  #include "../../core/windows/SDL_windows.h"
    1.11  #include "SDL_audio.h"
    1.12  #include "../SDL_audio_c.h"
    1.13  #include "../SDL_sysaudio.h"
    1.14  #include "SDL_assert.h"
    1.15  
    1.16 -#if SDL_AUDIO_DRIVER_XAUDIO2
    1.17 -
    1.18  #include <dxsdkver.h> /* XAudio2 exists as of the March 2008 DirectX SDK */
    1.19  #if (!defined(_DXSDK_BUILD_MAJOR) || (_DXSDK_BUILD_MAJOR < 1284))
    1.20  #  warning Your DirectX SDK is too old. Disabling XAudio2 support.