libjpeg: fix rendering on 32-bit platforms

Fixes SIZEOF_SIZE_T on 32-bit platforms that should be 4 instead of 8

Tested on Windows x86_32 and Android armv7
This commit is contained in:
Josh Tynjala
2025-01-07 09:43:21 -08:00
parent 57cf88b02d
commit 44dd331801

View File

@@ -23,10 +23,10 @@
#define VERSION "2.0.7"
/* The size of `size_t', as computed by sizeof. */
#if defined(RASPBERRYPI)
#define SIZEOF_SIZE_T 4
#else
#if (__WORDSIZE == 64) || defined(_WIN64)
#define SIZEOF_SIZE_T 8
#else
#define SIZEOF_SIZE_T 4
#endif
/* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */