From 1770d0a232974157ea7b08e77a8c529c47534062 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 9 Feb 2022 18:37:43 -0500 Subject: [PATCH] try to fix xaudio compiling on clang --- desmume/src/frontend/windows/sndxa2.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desmume/src/frontend/windows/sndxa2.cpp b/desmume/src/frontend/windows/sndxa2.cpp index 5ddea4369..201848ff7 100644 --- a/desmume/src/frontend/windows/sndxa2.cpp +++ b/desmume/src/frontend/windows/sndxa2.cpp @@ -16,7 +16,12 @@ */ #include "sndxa2.h" + +//https://stackoverflow.com/questions/9593013/using-g-4-6-1-i-get-many-c-compile-errors-when-trying-to-include-xaudio2-h/10628890#10628890 +#undef __cplusplus #include "directx/XAudio2.h" +#define __cplusplus + #include #include "types.h"