From 369ba0c4b7f1278c415f7c7655cfa6cc5ae2b5fb Mon Sep 17 00:00:00 2001 From: SupSuper Date: Thu, 9 May 2019 02:35:08 +0100 Subject: AUDIO: Fix MSVC warnings Fixes warning C4530: C++ exception handler used, but unwind semantics are not enabled by disabling exceptions in the STL since ScummVM doesn't support them --- audio/softsynth/mt32/FileStream.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'audio/softsynth/mt32') diff --git a/audio/softsynth/mt32/FileStream.cpp b/audio/softsynth/mt32/FileStream.cpp index 081f41a0e5..9e477d4e9b 100644 --- a/audio/softsynth/mt32/FileStream.cpp +++ b/audio/softsynth/mt32/FileStream.cpp @@ -21,6 +21,10 @@ #include "internals.h" +// Disable MSVC STL exceptions +#ifdef _MSC_VER +#define _HAS_EXCEPTIONS 0 +#endif #include "FileStream.h" namespace MT32Emu { -- cgit v1.2.3