Commit 02350337 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Let XAudio2 target be removed from the build by removing it from SDL_config.h

parent 3b667bac
......@@ -27,7 +27,7 @@
#define INITGUID 1
#include "SDL_xaudio2.h"
#if SDL_HAVE_XAUDIO2_H
#ifdef SDL_HAVE_XAUDIO2_H
static __inline__ char *
utf16_to_utf8(const WCHAR *S)
......
......@@ -25,15 +25,14 @@
#include "../SDL_sysaudio.h"
/* XAudio2 is available as of the March 2008 DirectX SDK */
#include <dxsdkver.h>
#if SDL_AUDIO_DRIVER_XAUDIO2
#include <dxsdkver.h> /* XAudio2 exists as of the March 2008 DirectX SDK */
#if (defined(_DXSDK_BUILD_MAJOR) && (_DXSDK_BUILD_MAJOR >= 1284))
# define SDL_HAVE_XAUDIO2_H 1
#else
# define SDL_HAVE_XAUDIO2_H 0
#endif
#endif
#if SDL_HAVE_XAUDIO2_H
#ifdef SDL_HAVE_XAUDIO2_H
#include <XAudio2.h>
/* Hidden "this" pointer for the audio functions */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment