aboutsummaryrefslogtreecommitdiff
path: root/sound/softsynth/mt32/synth.cpp
diff options
context:
space:
mode:
authorMax Horn2005-11-02 20:50:37 +0000
committerMax Horn2005-11-02 20:50:37 +0000
commit5e75092decb10ee760d62e2b42272b70eda05e2e (patch)
tree10a909cea251ab3c0f89f6df51d4f5ccf97ba0d2 /sound/softsynth/mt32/synth.cpp
parente3cdcdfcb8cfc69617e4853693911750efcef80c (diff)
downloadscummvm-rg350-5e75092decb10ee760d62e2b42272b70eda05e2e.tar.gz
scummvm-rg350-5e75092decb10ee760d62e2b42272b70eda05e2e.tar.bz2
scummvm-rg350-5e75092decb10ee760d62e2b42272b70eda05e2e.zip
Avoid using powf/expf/logf under Mac OS X, as they cause binary & compile incompatibilities with older system versions
svn-id: r19396
Diffstat (limited to 'sound/softsynth/mt32/synth.cpp')
-rw-r--r--sound/softsynth/mt32/synth.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/softsynth/mt32/synth.cpp b/sound/softsynth/mt32/synth.cpp
index 62356dcda9..5441f12a77 100644
--- a/sound/softsynth/mt32/synth.cpp
+++ b/sound/softsynth/mt32/synth.cpp
@@ -25,6 +25,13 @@
#include "mt32emu.h"
+#ifdef MACOSX
+// Older versions of Mac OS X didn't supply a powf function. To ensure
+// binary compatibiity, we force using pow instead of powf (the only
+// potential drawback is that it might be a little bit slower).
+#define powf pow
+#endif
+
namespace MT32Emu {
const int MAX_SYSEX_SIZE = 512;