Skip to content

Commit a18b807

Browse files
barracuda156sezero
authored andcommitted
music_*: fix remaining cases of incorrect attribute placement
(cherry picked from commit 518311a) (cherry picked from commit 93ab764)
1 parent 8c5f22e commit a18b807

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/codecs/music_flac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ static flac_loader flac;
9292
if (flac.FUNC == NULL) { Mix_SetError("Missing FLAC.framework"); return -1; }
9393
#endif
9494

95-
static int FLAC_Load(void)
9695
#ifdef __APPLE__
9796
/* Need to turn off optimizations so weak framework load check works */
9897
__attribute__ ((optnone))
9998
#endif
99+
static int FLAC_Load(void)
100100
{
101101
if (flac.loaded == 0) {
102102
#ifdef FLAC_DYNAMIC

src/codecs/music_gme.c

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

63-
static int GME_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 GME_Load(void)
6868
{
6969
if (gme.loaded == 0) {
7070
#ifdef GME_DYNAMIC

src/codecs/music_modplug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ static ModPlug_Settings settings;
6262
if (modplug.FUNC == NULL) { Mix_SetError("Missing libmodplug.framework"); return -1; }
6363
#endif
6464

65-
static int MODPLUG_Load(void)
6665
#ifdef __APPLE__
6766
/* Need to turn off optimizations so weak framework load check works */
6867
__attribute__ ((optnone))
6968
#endif
69+
static int MODPLUG_Load(void)
7070
{
7171
if (modplug.loaded == 0) {
7272
#ifdef MODPLUG_DYNAMIC

src/codecs/music_mpg123.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ static mpg123_loader mpg123;
8181
if (mpg123.FUNC == NULL) { Mix_SetError("Missing mpg123.framework"); return -1; }
8282
#endif
8383

84-
static int MPG123_Load(void)
8584
#ifdef __APPLE__
8685
/* Need to turn off optimizations so weak framework load check works */
8786
__attribute__ ((optnone))
8887
#endif
88+
static int MPG123_Load(void)
8989
{
9090
if (mpg123.loaded == 0) {
9191
#ifdef MPG123_DYNAMIC

src/codecs/music_ogg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ static vorbis_loader vorbis;
7373
if (vorbis.FUNC == NULL) { Mix_SetError("Missing vorbis.framework or tremor.framework"); return -1; }
7474
#endif
7575

76-
static int OGG_Load(void)
7776
#ifdef __APPLE__
7877
/* Need to turn off optimizations so weak framework load check works */
7978
__attribute__ ((optnone))
8079
#endif
80+
static int OGG_Load(void)
8181
{
8282
if (vorbis.loaded == 0) {
8383
#ifdef OGG_DYNAMIC

0 commit comments

Comments
 (0)