SDL_image: Fix compilation: don't allow SAVE_ANI if LOAD_ANI is not set

From ce29e8a73dda73f9d536e0c19dfcf35e375a85ab Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Wed, 22 Oct 2025 14:27:40 +0200
Subject: [PATCH] Fix compilation: don't allow SAVE_ANI if LOAD_ANI is not set

---
 src/IMG_ani.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/IMG_ani.c b/src/IMG_ani.c
index f80cb2ab..17089efb 100644
--- a/src/IMG_ani.c
+++ b/src/IMG_ani.c
@@ -30,6 +30,12 @@
 #define SAVE_ANI 1
 #endif
 
+
+#ifndef LOAD_ANI
+#undef SAVE_ANI
+#define SAVE_ANI 0
+#endif
+
 #ifdef LOAD_ANI
 
 #define RIFF_FOURCC(c0, c1, c2, c3)                 \