Let XAudio2 target be removed from the build by removing it from SDL_config.h
This commit is contained in:
parent
3b667bacd5
commit
023503370c
2 changed files with 5 additions and 6 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue