fix on big-endian arch; thanks Markus Lude for the report
This commit is contained in:
parent
3cc5e96e74
commit
348503d682
12
graphics/openjpeg/patches/patch-applications_codec_convert_c
Normal file
12
graphics/openjpeg/patches/patch-applications_codec_convert_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-applications_codec_convert_c,v 1.1 2013/12/11 23:13:06 sthen Exp $
|
||||
--- applications/codec/convert.c.orig Wed Dec 11 23:11:40 2013
|
||||
+++ applications/codec/convert.c Wed Dec 11 23:11:59 2013
|
||||
@@ -179,7 +179,7 @@ static int tga_readheader(FILE *fp, unsigned int *bits
|
||||
return 1;
|
||||
}
|
||||
|
||||
-#if WORDS_BIGENDIAN == 1
|
||||
+#if WORDS_BIGENDIAN == 1 && !defined(swap16)
|
||||
|
||||
static inline int16_t swap16(int16_t x)
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user