added my Recipes
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
From 41791738221fdb7574fc8e23f84214910cdce098 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 1 Mar 2023 21:51:40 -0800
|
||||
Subject: [PATCH] png-img: Fix prototypes of callbacks
|
||||
|
||||
Clang-16 is flagging function pointer mismatches
|
||||
|
||||
Upstream-Status: Inappropriate [No upstream]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
IMG_png.c | 16 ++++++++--------
|
||||
1 file changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/IMG_png.c b/IMG_png.c
|
||||
index 5f91f15..4d5bdb6 100644
|
||||
--- a/IMG_png.c
|
||||
+++ b/IMG_png.c
|
||||
@@ -78,15 +78,15 @@
|
||||
static struct {
|
||||
int loaded;
|
||||
void *handle;
|
||||
- png_infop (*png_create_info_struct) (png_structp png_ptr);
|
||||
+ png_infop (*png_create_info_struct) (png_const_structp png_ptr);
|
||||
png_structp (*png_create_read_struct) (png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn);
|
||||
void (*png_destroy_read_struct) (png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr);
|
||||
- png_uint_32 (*png_get_IHDR) (png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_method, int *compression_method, int *filter_method);
|
||||
- png_voidp (*png_get_io_ptr) (png_structp png_ptr);
|
||||
- png_byte (*png_get_channels) (png_structp png_ptr, png_infop info_ptr);
|
||||
- png_uint_32 (*png_get_PLTE) (png_structp png_ptr, png_infop info_ptr, png_colorp *palette, int *num_palette);
|
||||
- png_uint_32 (*png_get_tRNS) (png_structp png_ptr, png_infop info_ptr, png_bytep *trans, int *num_trans, png_color_16p *trans_values);
|
||||
- png_uint_32 (*png_get_valid) (png_structp png_ptr, png_infop info_ptr, png_uint_32 flag);
|
||||
+ png_uint_32 (*png_get_IHDR) (png_const_structp png_ptr, png_const_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_method, int *compression_method, int *filter_method);
|
||||
+ png_voidp (*png_get_io_ptr) (png_const_structp png_ptr);
|
||||
+ png_byte (*png_get_channels) (png_const_structp png_ptr, png_const_infop info_ptr);
|
||||
+ png_uint_32 (*png_get_PLTE) (png_const_structp png_ptr, png_infop info_ptr, png_colorp *palette, int *num_palette);
|
||||
+ png_uint_32 (*png_get_tRNS) (png_const_structp png_ptr, png_infop info_ptr, png_bytep *trans, int *num_trans, png_color_16p *trans_values);
|
||||
+ png_uint_32 (*png_get_valid) (png_const_structp png_ptr, png_const_infop info_ptr, png_uint_32 flag);
|
||||
void (*png_read_image) (png_structp png_ptr, png_bytepp image);
|
||||
void (*png_read_info) (png_structp png_ptr, png_infop info_ptr);
|
||||
void (*png_read_update_info) (png_structp png_ptr, png_infop info_ptr);
|
||||
@@ -95,7 +95,7 @@ static struct {
|
||||
void (*png_set_packing) (png_structp png_ptr);
|
||||
void (*png_set_read_fn) (png_structp png_ptr, png_voidp io_ptr, png_rw_ptr read_data_fn);
|
||||
void (*png_set_strip_16) (png_structp png_ptr);
|
||||
- int (*png_sig_cmp) (png_bytep sig, png_size_t start, png_size_t num_to_check);
|
||||
+ int (*png_sig_cmp) (png_const_bytep sig, png_size_t start, png_size_t num_to_check);
|
||||
#ifndef LIBPNG_VERSION_12
|
||||
jmp_buf* (*png_set_longjmp_fn) (png_structp, png_longjmp_ptr, size_t);
|
||||
#endif
|
||||
--
|
||||
2.39.2
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
Index: SDL_image-1.2.12/configure.in
|
||||
===================================================================
|
||||
--- SDL_image-1.2.12.orig/configure.in 2012-01-21 01:51:33.000000000 +0000
|
||||
+++ SDL_image-1.2.12/configure.in 2014-07-18 06:56:56.853466678 +0000
|
||||
@@ -1,5 +1,4 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
-AC_INIT(README)
|
||||
|
||||
dnl Set various version strings - taken gratefully from the GTk sources
|
||||
|
||||
@@ -11,12 +10,19 @@
|
||||
# if backwards compatibility has been broken,
|
||||
# set BINARY_AGE and INTERFACE_AGE to 0.
|
||||
|
||||
-MAJOR_VERSION=1
|
||||
-MINOR_VERSION=2
|
||||
-MICRO_VERSION=12
|
||||
+m4_define([sdlimage_major_version],[1])
|
||||
+m4_define([sdlimage_minor_version],[2])
|
||||
+m4_define([sdlimage_micro_version],[12])
|
||||
+m4_define([sdlimage_version], [sdlimage_major_version.sdlimage_minor_version.sdlimage_micro_version])
|
||||
+
|
||||
+AC_INIT([SDL_image], [sdlimage_version])
|
||||
+
|
||||
+MAJOR_VERSION=sdlimage_major_version
|
||||
+MINOR_VERSION=sdlimage_minor_version
|
||||
+MICRO_VERSION=sdlimage_micro_version
|
||||
INTERFACE_AGE=4
|
||||
BINARY_AGE=12
|
||||
-VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
|
||||
+VERSION=sdlimage_version
|
||||
|
||||
AC_SUBST(MAJOR_VERSION)
|
||||
AC_SUBST(MINOR_VERSION)
|
||||
@@ -42,7 +48,7 @@
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
dnl Setup for automake
|
||||
-AM_INIT_AUTOMAKE(SDL_image, $VERSION)
|
||||
+AM_INIT_AUTOMAKE([foreign])
|
||||
|
||||
dnl Check for tools
|
||||
AC_PROG_LIBTOOL
|
||||
Reference in New Issue
Block a user