mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-07 14:23:19 +00:00
97d56a3365
Use the correct function pointer types to avoid incompatible function pointer type assignment errors with clang 16. Also disable `webp-shared` like the other image formats already do and add it as an explicit dependency.
17 lines
1.1 KiB
Diff
17 lines
1.1 KiB
Diff
diff -ur a/IMG_webp.c b/IMG_webp.c
|
|
--- a/IMG_webp.c 2012-01-20 20:51:33.000000000 -0500
|
|
+++ b/IMG_webp.c 2024-07-24 20:48:58.697398200 -0400
|
|
@@ -47,9 +47,9 @@
|
|
static struct {
|
|
int loaded;
|
|
void *handle;
|
|
- int/*VP8StatuCode*/ (*webp_get_features_internal) (const uint8_t *data, uint32_t data_size, WebPBitstreamFeatures* const features, int decoder_abi_version);
|
|
- uint8_t* (*webp_decode_rgb_into) (const uint8_t* data, uint32_t data_size, uint8_t* output_buffer, int output_buffer_size, int output_stride);
|
|
- uint8_t* (*webp_decode_rgba_into) (const uint8_t* data, uint32_t data_size, uint8_t* output_buffer, int output_buffer_size, int output_stride);
|
|
+ VP8StatusCode (*webp_get_features_internal) (const uint8_t *data, size_t data_size, WebPBitstreamFeatures* const features, int decoder_abi_version);
|
|
+ uint8_t* (*webp_decode_rgb_into) (const uint8_t* data, size_t data_size, uint8_t* output_buffer, size_t output_buffer_size, int output_stride);
|
|
+ uint8_t* (*webp_decode_rgba_into) (const uint8_t* data, size_t data_size, uint8_t* output_buffer, size_t output_buffer_size, int output_stride);
|
|
} lib;
|
|
|
|
#ifdef LOAD_WEBP_DYNAMIC
|