mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
Use pow() instead of powf() when compiling with MinGW32 to work around a libstdc++ cross-compile bug, see #2673362
svn-id: r39309
This commit is contained in:
parent
d5d7bd73d5
commit
c72cba069b
@ -25,11 +25,14 @@
|
||||
|
||||
#include "mt32emu.h"
|
||||
|
||||
#if defined(MACOSX) || defined(SOLARIS)
|
||||
#if defined(MACOSX) || defined(SOLARIS) || defined(__MINGW32__)
|
||||
// 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.
|
||||
// Cross-compiled MinGW32 toolchains suffer from a cross-compile bug in
|
||||
// libstdc++. math/stubs.o should be empty, but it comes with a symbol for
|
||||
// powf, resulting in a linker error because of multiple definitions.
|
||||
// Hence we re-define them here. The only potential drawback is that it
|
||||
// might be a little bit slower this way.
|
||||
#define powf pow
|
||||
|
@ -25,11 +25,14 @@
|
||||
|
||||
#include "mt32emu.h"
|
||||
|
||||
#if defined(MACOSX) || defined(SOLARIS)
|
||||
#if defined(MACOSX) || defined(SOLARIS) || defined(__MINGW32__)
|
||||
// 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.
|
||||
// Cross-compiled MinGW32 toolchains suffer from a cross-compile bug in
|
||||
// libstdc++. math/stubs.o should be empty, but it comes with a symbol for
|
||||
// powf, resulting in a linker error because of multiple definitions.
|
||||
// Hence we re-define them here. The only potential drawback is that it
|
||||
// might be a little bit slower this way.
|
||||
#define powf pow
|
||||
|
@ -25,11 +25,14 @@
|
||||
|
||||
#include "mt32emu.h"
|
||||
|
||||
#if defined(MACOSX) || defined(SOLARIS)
|
||||
#if defined(MACOSX) || defined(SOLARIS) || defined(__MINGW32__)
|
||||
// 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.
|
||||
// Cross-compiled MinGW32 toolchains suffer from a cross-compile bug in
|
||||
// libstdc++. math/stubs.o should be empty, but it comes with a symbol for
|
||||
// powf, resulting in a linker error because of multiple definitions.
|
||||
// Hence we re-define them here. The only potential drawback is that it
|
||||
// might be a little bit slower this way.
|
||||
#define powf pow
|
||||
|
Loading…
x
Reference in New Issue
Block a user