aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth
diff options
context:
space:
mode:
authorSupSuper2019-05-09 02:35:08 +0100
committerPaul Gilbert2019-05-09 18:13:10 +1000
commit369ba0c4b7f1278c415f7c7655cfa6cc5ae2b5fb (patch)
tree2992da56f71a2b743dac30d82892a2ca60a9d97c /audio/softsynth
parent2365b678b30470d9cf5580126335cee700ac1c4f (diff)
downloadscummvm-rg350-369ba0c4b7f1278c415f7c7655cfa6cc5ae2b5fb.tar.gz
scummvm-rg350-369ba0c4b7f1278c415f7c7655cfa6cc5ae2b5fb.tar.bz2
scummvm-rg350-369ba0c4b7f1278c415f7c7655cfa6cc5ae2b5fb.zip
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
Diffstat (limited to 'audio/softsynth')
-rw-r--r--audio/softsynth/mt32/FileStream.cpp4
1 files changed, 4 insertions, 0 deletions
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 {