Files
ports/graphics/imlib2/files/patch-src_modules_loaders_loader__argb.c
T
Piotr Kubaj ff09500154 graphics/imlib2: fix build on big-endian architectures
l, used in big-endian ifdef, is not declared by default:
loader_argb.c:55: error: 'l' undeclared (first use in this function)
2020-08-08 15:42:55 +00:00

13 lines
347 B
C

--- src/modules/loaders/loader_argb.c.orig 2020-08-08 14:27:16 UTC
+++ src/modules/loaders/loader_argb.c
@@ -7,6 +7,9 @@ load2(ImlibImage * im, int load_data)
int w = 0, h = 0, alpha = 0;
DATA32 *ptr;
int y;
+#ifdef WORDS_BIGENDIAN
+ int l;
+#endif
rc = LOAD_FAIL;