mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Audio: don’t build XAudio2 backend on Linux
The files already had a #ifdef _WIN32, but this avoid even trying to compile their translation unit. I was surprised to see XAudio2 being mentioned on Linux, this makes sure no one else will get this surprise.
This commit is contained in:
parent
a360836fef
commit
9253f7d645
5 changed files with 17 additions and 15 deletions
|
@ -1,4 +1,6 @@
|
|||
#ifdef _WIN32
|
||||
#ifndef _WIN32
|
||||
#error "XAudio28 can only be built on Windows."
|
||||
#endif
|
||||
|
||||
#include "Utilities/Log.h"
|
||||
#include "Utilities/StrFmt.h"
|
||||
|
@ -211,5 +213,3 @@ XAudio2Backend::XAudio2Library* XAudio2Backend::xa28_init(void* lib2_8)
|
|||
{
|
||||
return new XAudio28Library(lib2_8);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue