SDL_image: IMG_xcf.c: fix building with -DDEBUG=1

From c775cb864ae10a1476d5a3b156636927371c8283 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 6 Jan 2023 00:59:43 +0100
Subject: [PATCH] IMG_xcf.c: fix building with -DDEBUG=1

---
 IMG_xcf.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/IMG_xcf.c b/IMG_xcf.c
index 66fd452f..e3c5859d 100644
--- a/IMG_xcf.c
+++ b/IMG_xcf.c
@@ -26,6 +26,11 @@
 
 #ifdef LOAD_XCF
 
+#if DEBUG
+#include <SDL3/SDL_stdinc.h>
+#include <stdio.h>
+#endif
+
 #ifndef SDL_SIZE_MAX
 #define SDL_SIZE_MAX ((size_t)-1)
 #endif
@@ -271,7 +276,7 @@ static int xcf_read_property (SDL_RWops * src, xcf_prop * prop) {
   prop->length = SDL_ReadBE32 (src);
 
 #if DEBUG
-  printf ("%.8X: %s(%u): %u\n", SDL_RWtell (src), prop->id < 25 ? prop_names [prop->id] : "unknown", prop->id, prop->length);
+  printf ("%.8" SDL_PRIs64 ": %s(%u): %u\n", SDL_RWtell (src), prop->id < 25 ? prop_names [prop->id] : "unknown", prop->id, prop->length);
 #endif
 
   switch (prop->id) {