Skip to content

Commit

Permalink
Need to turn off optimizations so weak framework load check works
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 30, 2023
1 parent 16b5d0c commit 0cc096f
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/codecs/music_flac.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ static flac_loader flac;
#endif

static int FLAC_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if (flac.loaded == 0) {
#ifdef FLAC_DYNAMIC
Expand Down
4 changes: 4 additions & 0 deletions src/codecs/music_gme.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ static gme_loader gme;
#endif

static int GME_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if (gme.loaded == 0) {
#ifdef GME_DYNAMIC
Expand Down
4 changes: 4 additions & 0 deletions src/codecs/music_modplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ static ModPlug_Settings settings;
#endif

static int MODPLUG_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if (modplug.loaded == 0) {
#ifdef MODPLUG_DYNAMIC
Expand Down
4 changes: 4 additions & 0 deletions src/codecs/music_mpg123.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ static mpg123_loader mpg123;
#endif

static int MPG123_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if (mpg123.loaded == 0) {
#ifdef MPG123_DYNAMIC
Expand Down
4 changes: 4 additions & 0 deletions src/codecs/music_ogg.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ static vorbis_loader vorbis;
#endif

static int OGG_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if (vorbis.loaded == 0) {
#ifdef OGG_DYNAMIC
Expand Down
4 changes: 4 additions & 0 deletions src/codecs/music_opus.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ static opus_loader opus;
#endif

static int OPUS_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if (opus.loaded == 0) {
#ifdef OPUS_DYNAMIC
Expand Down
4 changes: 4 additions & 0 deletions src/codecs/music_wavpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ static wavpack_loader wvpk;
#endif

static int WAVPACK_Load(void)
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if (wvpk.loaded == 0) {
#ifdef WAVPACK_DYNAMIC
Expand Down
4 changes: 4 additions & 0 deletions src/codecs/music_xmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ static xmp_loader libxmp;
#endif

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

0 comments on commit 0cc096f

Please sign in to comment.