From 44a2d4d3bf5365dda3d2fbc5e54b99c0d291cdcd Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 2 Nov 2024 17:11:24 +0300
Subject: [PATCH] bump minimum required SDL3 version to 3.1.6 after today's
pre-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 4e601af..8486498 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,1,3)
+#define SDL3_REQUIRED_VER SDL_VERSIONNUM(3,1,6)
#endif
#ifndef DIRSEP
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index e82dc6a..c320f35 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -1223,8 +1223,8 @@
#define __BUILDING_SDL2_COMPAT__ 1
#include <SDL3/SDL.h>
-#if !SDL_VERSION_ATLEAST(3,1,3)
-#error You need to compile against SDL >= 3.1.3 headers
+#if !SDL_VERSION_ATLEAST(3,1,6)
+#error You need to compile against SDL >= 3.1.6 headers
#endif
#define SDL_MAIN_HANDLED 1