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 c90b2f0 commit a9564af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/IMG_avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ static struct {
#endif

int IMG_InitAVIF()
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if ( lib.loaded == 0 ) {
#ifdef LOAD_AVIF_DYNAMIC
Expand Down
4 changes: 4 additions & 0 deletions src/IMG_jxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ static struct {
#endif

int IMG_InitJXL()
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if ( lib.loaded == 0 ) {
#ifdef LOAD_JXL_DYNAMIC
Expand Down
4 changes: 4 additions & 0 deletions src/IMG_webp.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ static struct {
#endif

int IMG_InitWEBP()
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
{
if (lib.loaded == 0) {
#if defined(LOAD_WEBP_DYNAMIC) && defined(LOAD_WEBPDEMUX_DYNAMIC)
Expand Down

0 comments on commit a9564af

Please sign in to comment.