Skip to content

Commit

Permalink
Fix building on OpenBSD big endian hosts
Browse files Browse the repository at this point in the history
There is a swap16() function which conflicts with such a function
in the endian.h header.  uint16_t swap16(uint16_t val16);
  • Loading branch information
brad0 committed Mar 2, 2024
1 parent 3252f09 commit e233e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/jp2/convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ static int tga_readheader(FILE *fp, unsigned int *bits_per_pixel,
return 1;
}

#ifdef OPJ_BIG_ENDIAN
#if defined(OPJ_BIG_ENDIAN) && !defined(swap16)

static INLINE OPJ_UINT16 swap16(OPJ_UINT16 x)
{
Expand Down

0 comments on commit e233e6c

Please sign in to comment.