diff options
author | 2005-12-17 01:11:31 +0000 | |
---|---|---|
committer | 2005-12-17 01:11:31 +0000 | |
commit | f912e831021f289ce47fde591f79b6c608574c2a (patch) | |
tree | c9e65fb103e185c93b3e5c0fb773b0036f33a036 /media-libs/smpeg/files | |
parent | version bump (diff) | |
download | historical-f912e831021f289ce47fde591f79b6c608574c2a.tar.gz historical-f912e831021f289ce47fde591f79b6c608574c2a.tar.bz2 historical-f912e831021f289ce47fde591f79b6c608574c2a.zip |
Fix building with gcc-4.1.x #113558 by Robert Marmorstein.
Package-Manager: portage-2.0.53
Diffstat (limited to 'media-libs/smpeg/files')
-rw-r--r-- | media-libs/smpeg/files/smpeg-0.4.4-gcc41.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/media-libs/smpeg/files/smpeg-0.4.4-gcc41.patch b/media-libs/smpeg/files/smpeg-0.4.4-gcc41.patch new file mode 100644 index 000000000000..4a0eeb4530ae --- /dev/null +++ b/media-libs/smpeg/files/smpeg-0.4.4-gcc41.patch @@ -0,0 +1,41 @@ +Index: MPEGaudio.h +=================================================================== +RCS file: /cvs/cvsroot/smpeg/MPEGaudio.h,v +retrieving revision 1.23 +diff -u -p -r1.23 MPEGaudio.h +--- smpeg/MPEGaudio.h 17 Jul 2001 19:52:24 -0000 1.23 ++++ smpeg/MPEGaudio.h 6 Dec 2005 06:10:43 -0000 +@@ -151,12 +151,6 @@ private: + /* The actual MPEG audio class */ + class MPEGaudio : public MPEGerror, public MPEGaudioaction { + +- friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len); +- friend int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len); +-#ifdef THREADED_AUDIO +- friend int Decode_MPEGaudio(void *udata); +-#endif +- + public: + MPEGaudio(MPEGstream *stream, bool initSDL = true); + virtual ~MPEGaudio(); +@@ -367,6 +361,20 @@ public: + #define N_TIMESTAMPS 5 + + double timestamp[N_TIMESTAMPS]; ++ ++ /* Functions which access MPEGaudio internals */ ++ friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len); ++ friend int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len); ++#ifdef THREADED_AUDIO ++ friend int Decode_MPEGaudio(void *udata); ++#endif + }; + ++/* Need to duplicate the prototypes, this is not a typo :) */ ++void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len); ++int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len); ++#ifdef THREADED_AUDIO ++int Decode_MPEGaudio(void *udata); ++#endif ++ + #endif /* _MPEGAUDIO_H_ */ |