diff options
author | 2004-12-23 20:18:49 +0000 | |
---|---|---|
committer | 2004-12-23 20:18:49 +0000 | |
commit | a8e42639d6ea3995f6405fdc1e31bddad7cb039e (patch) | |
tree | 9cb7c3d406adb0e56c9e7ae320dbc328d5f545ae /media-sound/rezound/files | |
parent | Added support for ${ABI} and if it's not set, we do sll ${MULTILIB_ABIS}. Th... (diff) | |
download | gentoo-2-a8e42639d6ea3995f6405fdc1e31bddad7cb039e.tar.gz gentoo-2-a8e42639d6ea3995f6405fdc1e31bddad7cb039e.tar.bz2 gentoo-2-a8e42639d6ea3995f6405fdc1e31bddad7cb039e.zip |
Fixed a compilation error on ppc.
Diffstat (limited to 'media-sound/rezound/files')
-rw-r--r-- | media-sound/rezound/files/undefined-functions.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/media-sound/rezound/files/undefined-functions.patch b/media-sound/rezound/files/undefined-functions.patch new file mode 100644 index 000000000000..ef5fbc94e769 --- /dev/null +++ b/media-sound/rezound/files/undefined-functions.patch @@ -0,0 +1,38 @@ +--- config/common.h.orig 2004-12-23 20:00:50.710795840 +0100 ++++ config/common.h 2004-12-23 20:39:40.271648760 +0100 +@@ -21,6 +21,23 @@ + #ifndef COMMON_H + #define COMMON_H + ++/* Bugfix for ppc, some functions aren't defined */ ++#include <cmath> ++ ++#undef MAX ++#define MAX(a,b) ((a) > (b)?(a):(b)) ++#undef MIN ++#define MIN(a,b) ((a) < (b)?(a):(b)) ++#undef ABS ++#define ABS(a) ((a) >= 0?(a):-(a)) ++ ++#define floorl(l) floor(l) ++#define nearbyintl(l) nearbyint(l) ++#define fabsl(l) fabs(l) ++#define logl(l) log(l) ++#define expl(l) exp(l) ++#define ceill(l) ceil(l) ++ + /* common.h -- This file will deal with low-level portability problems. It + * should be includede at the top of every package file. */ + +--- src/frontend_fox/FXWaveCanvas.cpp.orig 2004-12-23 20:18:55.790838600 +0100 ++++ src/frontend_fox/FXWaveCanvas.cpp 2004-12-23 20:39:37.568059768 +0100 +@@ -56,6 +56,9 @@ + #include "../backend/CSoundPlayerChannel.h" + #include "drawPortion.h" + ++#include "../../config/common.h" ++#define max(a,b) MAX(a,b) ++ + static FXColor playStatusColor=FXRGB(255,0,0); + + #define RIGHT_MARGIN 10 |