Skip to content

Commit 8c5f22e

Browse files
barracuda156slouken
authored andcommitted
Unbreak build with gcc on macOS
(cherry picked from commit a2c6c89) (cherry picked from commit 40ae6c2)
1 parent 8508777 commit 8c5f22e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/codecs/music_opus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ static opus_loader opus;
6060
if (opus.FUNC == NULL) { Mix_SetError("Missing opus.framework"); return -1; }
6161
#endif
6262

63-
static int OPUS_Load(void)
6463
#ifdef __APPLE__
6564
/* Need to turn off optimizations so weak framework load check works */
6665
__attribute__ ((optnone))
6766
#endif
67+
static int OPUS_Load(void)
6868
{
6969
if (opus.loaded == 0) {
7070
#ifdef OPUS_DYNAMIC

src/codecs/music_wavpack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ static wavpack_loader wvpk;
9696
if (wvpk.FUNC == NULL) { Mix_SetError("Missing wavpack.framework"); return -1; }
9797
#endif
9898

99-
static int WAVPACK_Load(void)
10099
#ifdef __APPLE__
101100
/* Need to turn off optimizations so weak framework load check works */
102101
__attribute__ ((optnone))
103102
#endif
103+
static int WAVPACK_Load(void)
104104
{
105105
if (wvpk.loaded == 0) {
106106
#ifdef WAVPACK_DYNAMIC

src/codecs/music_xmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ static xmp_loader libxmp;
7676
if (libxmp.FUNC == NULL) { Mix_SetError("Missing xmp.framework"); return -1; }
7777
#endif
7878

79-
static int XMP_Load(void)
8079
#ifdef __APPLE__
8180
/* Need to turn off optimizations so weak framework load check works */
8281
__attribute__ ((optnone))
8382
#endif
83+
static int XMP_Load(void)
8484
{
8585
if (libxmp.loaded == 0) {
8686
#ifdef XMP_DYNAMIC

0 commit comments

Comments
 (0)