diff options
author | Max Horn | 2005-11-02 20:50:37 +0000 |
---|---|---|
committer | Max Horn | 2005-11-02 20:50:37 +0000 |
commit | 5e75092decb10ee760d62e2b42272b70eda05e2e (patch) | |
tree | 10a909cea251ab3c0f89f6df51d4f5ccf97ba0d2 /sound/softsynth/mt32/partial.cpp | |
parent | e3cdcdfcb8cfc69617e4853693911750efcef80c (diff) | |
download | scummvm-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/partial.cpp')
-rw-r--r-- | sound/softsynth/mt32/partial.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/softsynth/mt32/partial.cpp b/sound/softsynth/mt32/partial.cpp index e7e7af2a7f..7d4b985b49 100644 --- a/sound/softsynth/mt32/partial.cpp +++ b/sound/softsynth/mt32/partial.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 + #define FIXEDPOINT_UDIV(x, y, point) (((x) << (point)) / ((y))) #define FIXEDPOINT_SDIV(x, y, point) (((x) * (1 << point)) / ((y))) #define FIXEDPOINT_UMULT(x, y, point) (((x) * (y)) >> point) |