Files
gtk/gdk
Thomas Devoogdt ac2e3a17ce gdk/loaders/gdkjpeg.c: fix compilation on 32-bit systems
../gdk/loaders/gdkjpeg.c: In function ‘gdk_save_jpeg’:
../gdk/loaders/gdkjpeg.c:291:32: error: passing argument 3 of ‘jpeg_mem_dest’ from incompatible pointer type [-Wincompatible-pointer-types]
  291 |   jpeg_mem_dest (&info, &data, &size);
      |                                ^~~~~
      |                                |
      |                                gulong * {aka long unsigned int *}
In file included from ../gdk/loaders/gdkjpeg.c:30:
/home/thomas/br-test-pkg/bootlin-armv7-glibc/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/jpeglib.h:979:28: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘gulong *’ {aka ‘long unsigned int *’}

See multiple versions:

https://www.ijg.org/files/jpegsrc.v9c.tar.gz
- #define JPEG_LIB_VERSION        90	/* Compatibility version 9.0 */
- #define JPEG_LIB_VERSION_MAJOR  9
- #define JPEG_LIB_VERSION_MINOR  3
- EXTERN(void) jpeg_mem_dest JPP((j_compress_ptr cinfo,
			       unsigned char ** outbuffer,
			       unsigned long * outsize));

https://www.ijg.org/files/jpegsrc.v9d.tar.gz
- #define JPEG_LIB_VERSION        90	/* Compatibility version 9.0 */
- #define JPEG_LIB_VERSION_MAJOR  9
- #define JPEG_LIB_VERSION_MINOR  4
- EXTERN(void) jpeg_mem_dest JPP((j_compress_ptr cinfo,
			       unsigned char ** outbuffer,
			       size_t * outsize));

https://github.com/libjpeg-turbo/libjpeg-turbo/blob/3.0.4/jpeglib.h
https://github.com/libjpeg-turbo/libjpeg-turbo/blob/3.0.4/jconfig.h.in
- #define LIBJPEG_TURBO_VERSION  @VERSION@
- EXTERN(void) jpeg_mem_dest(j_compress_ptr cinfo, unsigned char **outbuffer,
                           unsigned long *outsize);

The jpegsrc changed the method signature with the v9d release,
libjpeg-turbo did not changed it's signature (yet).

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
2024-10-29 18:54:41 -04:00
..
2023-05-09 16:43:35 +01:00
2024-08-31 11:28:52 -04:00
2023-09-21 19:51:11 +02:00
2024-08-19 20:40:32 -04:00
2024-07-24 16:45:21 -06:00
2023-05-15 20:30:38 -04:00
2023-05-15 18:22:37 -04:00
2024-08-06 15:38:31 -04:00
2024-08-11 14:47:48 -04:00
2024-04-04 01:07:28 +02:00
2024-07-10 22:11:13 +02:00
2024-07-10 22:11:13 +02:00
2024-08-07 19:06:02 +02:00
2024-04-07 11:12:13 -04:00
2023-12-22 08:47:47 -05:00
2024-08-30 15:52:14 -04:00
2024-03-29 13:31:36 +00:00
2023-03-31 15:11:10 -04:00
2024-01-21 14:02:08 -05:00
2024-05-31 21:29:49 -04:00
2024-05-31 21:29:49 -04:00
2024-07-11 14:57:19 +02:00
2024-07-24 16:45:21 -06:00
2024-08-30 16:03:40 -04:00
2024-08-30 16:03:40 -04:00
2024-09-06 15:47:34 -04:00