Skip to content

Commit

Permalink
IMG_*: fix remaining cases of incorrect attribute placement
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c5051c)
(cherry picked from commit 1cdf374)
  • Loading branch information
barracuda156 authored and sezero committed Aug 14, 2024
1 parent 60f2d60 commit 8f7bb7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IMG_avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ static struct {
if (lib.FUNC == NULL) { IMG_SetError("Missing avif.framework"); return -1; }
#endif

int IMG_InitAVIF()
#ifdef __APPLE__
/* Need to turn off optimizations so weak framework load check works */
__attribute__ ((optnone))
#endif
int IMG_InitAVIF()
{
if ( lib.loaded == 0 ) {
#ifdef LOAD_AVIF_DYNAMIC
Expand Down
2 changes: 1 addition & 1 deletion src/IMG_jxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ static struct {
if (lib.FUNC == NULL) { IMG_SetError("Missing jxl.framework"); return -1; }
#endif

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

0 comments on commit 8f7bb7c

Please sign in to comment.