From a5234e399cd4f568fd8c581f6e837fa42264c400 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 21 Jan 2025 09:07:35 -0800
Subject: [PATCH] Revert "bump required build- and run-time SDL3 version to
3.2.0"
This reverts commit 3cb1093ccbb6eb7d32cc61fe3ba3aee68d968023.
We can't do this until after the SDL3 release.
---
src/sdl2_compat.c | 2 +-
src/sdl3_include_wrapper.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 7327b89..ffddc06 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -318,7 +318,7 @@ static char loaderror[256];
#endif
#ifndef SDL3_REQUIRED_VER
-#define SDL3_REQUIRED_VER SDL_VERSIONNUM(3,2,0)
+#define SDL3_REQUIRED_VER SDL_VERSIONNUM(3,1,10)
#endif
#ifndef DIRSEP
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index a5a6015..de110a6 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -1271,8 +1271,8 @@
#define __BUILDING_SDL2_COMPAT__ 1
#include <SDL3/SDL.h>
-#if !SDL_VERSION_ATLEAST(3,2,0)
-#error You need to compile against SDL >= 3.2.0 headers
+#if !SDL_VERSION_ATLEAST(3,1,10)
+#error You need to compile against SDL >= 3.1.10 headers
#endif
#define SDL_MAIN_HANDLED 1