SDL_ttf: Make it possible to build with older SDL (for GitHub CI)

From 9a86e3f1e167f9d117a1723c67c802cda1a48e3a Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 5 May 2022 12:15:36 -0700
Subject: [PATCH] Make it possible to build with older SDL (for GitHub CI)

---
 SDL_ttf.c    | 6 ++++++
 configure    | 2 +-
 configure.ac | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/SDL_ttf.c b/SDL_ttf.c
index c6f1552..08ac764 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -33,6 +33,12 @@
 #include FT_TRUETYPE_IDS_H
 #include FT_IMAGE_H
 
+
+/* SDL_SIMD_ALIGNED is defined in SDL 2.0.12 and newer */
+#ifndef SDL_SIMD_ALIGNED
+#define SDL_SIMD_ALIGNED 0
+#endif
+
 /* Enable rendering with color
  * Freetype may need to be compiled with FT_CONFIG_OPTION_USE_PNG */
 #if defined(FT_HAS_COLOR)
diff --git a/configure b/configure
index 292ad81..662cb3e 100755
--- a/configure
+++ b/configure
@@ -16021,7 +16021,7 @@ fi
 
 SUMMARY="\nSDL2_ttf Configure Summary:\n"
 
-SDL_VERSION=2.0.12
+SDL_VERSION=2.0.8
 
 
 
diff --git a/configure.ac b/configure.ac
index f98ef4e..8210727 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,7 +86,7 @@ AM_CONDITIONAL(USE_VERSION_RC, test x$use_version_rc = xtrue)
 SUMMARY="\nSDL2_ttf Configure Summary:\n"
 
 dnl Check for SDL
-SDL_VERSION=2.0.12
+SDL_VERSION=2.0.8
 AC_SUBST(SDL_VERSION)
 AM_PATH_SDL2($SDL_VERSION,
             :,