Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

music_*: fix remaining cases of incorrect attribute placement #628

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -82,11 +82,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
Loading