SDL_mixer: Unbreak build with gcc on macOS (8c5f2)

From 8c5f22e64b77b0dbc698da93596a5cef3ec208e5 Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <[EMAIL REDACTED]>
Date: Wed, 14 Aug 2024 03:47:43 +0800
Subject: [PATCH] Unbreak build with gcc on macOS

(cherry picked from commit a2c6c892aae6b28bbb03adc1bb5ffe32f1eea17e)
(cherry picked from commit 40ae6c23de352f4fd6f11a372bb6efb6208d75ba)
---
 src/codecs/music_opus.c    | 2 +-
 src/codecs/music_wavpack.c | 2 +-
 src/codecs/music_xmp.c     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/codecs/music_opus.c b/src/codecs/music_opus.c
index 8d53401d..e1ac5176 100644
--- a/src/codecs/music_opus.c
+++ b/src/codecs/music_opus.c
@@ -60,11 +60,11 @@ static opus_loader opus;
     if (opus.FUNC == NULL) { Mix_SetError("Missing opus.framework"); return -1; }
 #endif
 
-static int OPUS_Load(void)
 #ifdef __APPLE__
     /* Need to turn off optimizations so weak framework load check works */
     __attribute__ ((optnone))
 #endif
+static int OPUS_Load(void)
 {
     if (opus.loaded == 0) {
 #ifdef OPUS_DYNAMIC
diff --git a/src/codecs/music_wavpack.c b/src/codecs/music_wavpack.c
index 96ee6ce1..2de9189b 100644
--- a/src/codecs/music_wavpack.c
+++ b/src/codecs/music_wavpack.c
@@ -96,11 +96,11 @@ static wavpack_loader wvpk;
     if (wvpk.FUNC == NULL) { Mix_SetError("Missing wavpack.framework"); return -1; }
 #endif
 
-static int WAVPACK_Load(void)
 #ifdef __APPLE__
     /* Need to turn off optimizations so weak framework load check works */
     __attribute__ ((optnone))
 #endif
+static int WAVPACK_Load(void)
 {
     if (wvpk.loaded == 0) {
 #ifdef WAVPACK_DYNAMIC
diff --git a/src/codecs/music_xmp.c b/src/codecs/music_xmp.c
index 6799f5b6..ec519467 100644
--- a/src/codecs/music_xmp.c
+++ b/src/codecs/music_xmp.c
@@ -76,11 +76,11 @@ static xmp_loader libxmp;
     if (libxmp.FUNC == NULL) { Mix_SetError("Missing xmp.framework"); return -1; }
 #endif
 
-static int XMP_Load(void)
 #ifdef __APPLE__
     /* Need to turn off optimizations so weak framework load check works */
     __attribute__ ((optnone))
 #endif
+static int XMP_Load(void)
 {
     if (libxmp.loaded == 0) {
 #ifdef XMP_DYNAMIC