Skip to content

Commit

Permalink
music_*: fix remaining cases of incorrect attribute placement
Browse files Browse the repository at this point in the history
(cherry picked from commit 518311a)
(cherry picked from commit 93ab764)
  • Loading branch information
barracuda156 authored and sezero committed Aug 14, 2024
1 parent 8c5f22e commit a18b807
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/codecs/music_flac.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ static flac_loader flac;
if (flac.FUNC == NULL) { Mix_SetError("Missing FLAC.framework"); return -1; }
#endif

static int FLAC_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
static int FLAC_Load(void)
{
if (flac.loaded == 0) {
#ifdef FLAC_DYNAMIC
Expand Down
2 changes: 1 addition & 1 deletion src/codecs/music_gme.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ static gme_loader gme;
if (gme.FUNC == NULL) { Mix_SetError("Missing gme.framework"); return -1; }
#endif

static int GME_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
static int GME_Load(void)
{
if (gme.loaded == 0) {
#ifdef GME_DYNAMIC
Expand Down
2 changes: 1 addition & 1 deletion src/codecs/music_modplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ static ModPlug_Settings settings;
if (modplug.FUNC == NULL) { Mix_SetError("Missing libmodplug.framework"); return -1; }
#endif

static int MODPLUG_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
static int MODPLUG_Load(void)
{
if (modplug.loaded == 0) {
#ifdef MODPLUG_DYNAMIC
Expand Down
2 changes: 1 addition & 1 deletion src/codecs/music_mpg123.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ static mpg123_loader mpg123;
if (mpg123.FUNC == NULL) { Mix_SetError("Missing mpg123.framework"); return -1; }
#endif

static int MPG123_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
static int MPG123_Load(void)
{
if (mpg123.loaded == 0) {
#ifdef MPG123_DYNAMIC
Expand Down
2 changes: 1 addition & 1 deletion src/codecs/music_ogg.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ static vorbis_loader vorbis;
if (vorbis.FUNC == NULL) { Mix_SetError("Missing vorbis.framework or tremor.framework"); return -1; }
#endif

static int OGG_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
static int OGG_Load(void)
{
if (vorbis.loaded == 0) {
#ifdef OGG_DYNAMIC
Expand Down

0 comments on commit a18b807

Please sign in to comment.