mirror of
https://github.com/yawut/SDL.git
synced 2026-09-12 11:06:49 -05:00
Let XAudio2 target be removed from the build by removing it from SDL_config.h
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user