mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
Completed fix for bug #1523129 (SOLARIS: solaris 8 build broken)
svn-id: r30972
This commit is contained in:
parent
da09e917e8
commit
eb9f0dcbf8
@ -25,11 +25,16 @@
|
||||
|
||||
#include "mt32emu.h"
|
||||
|
||||
#ifdef MACOSX
|
||||
// Older versions of Mac OS X didn't supply a powf function. To ensure
|
||||
// binary compatibility, we force using pow instead of powf (the only
|
||||
// potential drawback is that it might be a little bit slower).
|
||||
#if defined(MACOSX) || defined(__solaris__)
|
||||
// Older versions of Mac OS X didn't supply a powf function, so using it
|
||||
// will cause a binary incompatibility when trying to run a binary built
|
||||
// on a newer OS X release on an olderr one. And Solaris 8 doesn't provide
|
||||
// powf, floorf, fabsf etc. at all.
|
||||
// Hence we re-define them here. The only potential drawback is that it
|
||||
// might be a little bit slower this way.
|
||||
#define powf pow
|
||||
#define floorf floor
|
||||
#define fabsf fabs
|
||||
#endif
|
||||
|
||||
#define FIXEDPOINT_UDIV(x, y, point) (((x) << (point)) / ((y)))
|
||||
|
@ -25,11 +25,16 @@
|
||||
|
||||
#include "mt32emu.h"
|
||||
|
||||
#ifdef MACOSX
|
||||
// Older versions of Mac OS X didn't supply a powf function. To ensure
|
||||
// binary compatibility, we force using pow instead of powf (the only
|
||||
// potential drawback is that it might be a little bit slower).
|
||||
#if defined(MACOSX) || defined(__solaris__)
|
||||
// Older versions of Mac OS X didn't supply a powf function, so using it
|
||||
// will cause a binary incompatibility when trying to run a binary built
|
||||
// on a newer OS X release on an olderr one. And Solaris 8 doesn't provide
|
||||
// powf, floorf, fabsf etc. at all.
|
||||
// Hence we re-define them here. The only potential drawback is that it
|
||||
// might be a little bit slower this way.
|
||||
#define powf pow
|
||||
#define floorf floor
|
||||
#define fabsf fabs
|
||||
#endif
|
||||
|
||||
namespace MT32Emu {
|
||||
|
@ -25,11 +25,16 @@
|
||||
|
||||
#include "mt32emu.h"
|
||||
|
||||
#ifdef MACOSX
|
||||
// Older versions of Mac OS X didn't supply a powf function. To ensure
|
||||
// binary compatibility, we force using pow instead of powf (the only
|
||||
// potential drawback is that it might be a little bit slower).
|
||||
#if defined(MACOSX) || defined(__solaris__)
|
||||
// Older versions of Mac OS X didn't supply a powf function, so using it
|
||||
// will cause a binary incompatibility when trying to run a binary built
|
||||
// on a newer OS X release on an olderr one. And Solaris 8 doesn't provide
|
||||
// powf, floorf, fabsf etc. at all.
|
||||
// Hence we re-define them here. The only potential drawback is that it
|
||||
// might be a little bit slower this way.
|
||||
#define powf pow
|
||||
#define floorf floor
|
||||
#define fabsf fabs
|
||||
#endif
|
||||
|
||||
#define FIXEDPOINT_MAKE(x, point) ((Bit32u)((1 << point) * x))
|
||||
|
Loading…
x
Reference in New Issue
Block a user