SDL_image: Fix incompatible pointer type error when compiling with Clang compiler

From 7c6ea40bb75262740cd07f7658bc543f13c65b3c Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Thu, 6 Nov 2025 14:53:59 +0100
Subject: [PATCH] Fix incompatible pointer type error when compiling with Clang
 compiler

---
 IMG_png.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/IMG_png.c b/IMG_png.c
index 0618fff13..ab8de6ecb 100644
--- a/IMG_png.c
+++ b/IMG_png.c
@@ -113,7 +113,7 @@ int IMG_InitPNG()
 			return -1;
 		}
 		lib.png_create_read_struct =
-			(png_structrp (*) (png_const_charp, png_voidp, png_error_ptr, png_error_ptr))
+			(png_structp (*) (png_const_charp, png_voidp, png_error_ptr, png_error_ptr))
 			SDL_LoadFunction(lib.handle, "png_create_read_struct");
 		if ( lib.png_create_read_struct == NULL ) {
 			SDL_UnloadObject(lib.handle);