From 6084417109b58af35c4a82f2cd5120f7d394264f Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Thu, 20 Feb 2020 13:42:43 +1100 Subject: [PATCH] smpeg: use format-patch --- src/smpeg-0-fix-missing-declaration.patch | 18 -------------- src/smpeg-1-fixes.patch | 29 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 18 deletions(-) delete mode 100644 src/smpeg-0-fix-missing-declaration.patch create mode 100644 src/smpeg-1-fixes.patch diff --git a/src/smpeg-0-fix-missing-declaration.patch b/src/smpeg-0-fix-missing-declaration.patch deleted file mode 100644 index 147d0acd..00000000 --- a/src/smpeg-0-fix-missing-declaration.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- ./MPEGaudio.h~ 2006-03-13 15:24:38.000000000 +0000 -+++ ./MPEGaudio.h 2006-03-13 15:25:07.000000000 +0000 -@@ -149,6 +149,14 @@ - }; - - /* The actual MPEG audio class */ -+ -+class MPEGaudio; -+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 -+ - class MPEGaudio : public MPEGerror, public MPEGaudioaction { - - friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len); - diff --git a/src/smpeg-1-fixes.patch b/src/smpeg-1-fixes.patch new file mode 100644 index 00000000..cca91b07 --- /dev/null +++ b/src/smpeg-1-fixes.patch @@ -0,0 +1,29 @@ +This file is part of MXE. See LICENSE.md for licensing information. + +Contains ad hoc patches for cross building. + +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tony Theodore +Date: Thu, 20 Feb 2020 13:41:29 +1100 +Subject: [PATCH 1/1] fix missing declaration + + +diff --git a/MPEGaudio.h b/MPEGaudio.h +index 1111111..2222222 100644 +--- a/MPEGaudio.h ++++ b/MPEGaudio.h +@@ -149,6 +149,14 @@ private: + }; + + /* The actual MPEG audio class */ ++ ++class MPEGaudio; ++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 ++ + class MPEGaudio : public MPEGerror, public MPEGaudioaction { + + friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);