setup-sdl: SDL3 changed the patch macro definition name

From 0bcd6a0c90ee0d4d6899eb4383f8ce75db7a01ca Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 15 May 2024 22:15:42 +0200
Subject: [PATCH] SDL3 changed the patch macro definition name

---
 packed/index.js | 10 +++++-----
 src/version.ts  | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/packed/index.js b/packed/index.js
index 8759c44..ca5670e 100644
--- a/packed/index.js
+++ b/packed/index.js
@@ -1608,7 +1608,7 @@ exports.project_descriptions = (_a = {},
         deps: [Project.SDL],
         major_define: "SDL_IMAGE_MAJOR_VERSION",
         minor_define: "SDL_IMAGE_MINOR_VERSION",
-        patch_define: "SDL_IMAGE_PATCHLEVEL",
+        patch_define: "(?:SDL_IMAGE_MICRO_VERSION|SDL_IMAGE_PATCHLEVEL)",
         header_paths: ["include/SDL3_image", "include/SDL2"],
         header_filenames: ["SDL_image.h"],
         git_url: "https://github.com/libsdl-org/SDL_image.git",
@@ -1623,7 +1623,7 @@ exports.project_descriptions = (_a = {},
         deps: [Project.SDL],
         major_define: "SDL_MIXER_MAJOR_VERSION",
         minor_define: "SDL_MIXER_MINOR_VERSION",
-        patch_define: "SDL_MIXER_PATCHLEVEL",
+        patch_define: "(?:SDL_MIXER_MICRO_VERSION|SDL_MIXER_PATCHLEVEL)",
         header_paths: ["include/SDL3_mixer", "include/SDL2"],
         header_filenames: ["SDL_mixer.h"],
         git_url: "https://github.com/libsdl-org/SDL_mixer.git",
@@ -1638,7 +1638,7 @@ exports.project_descriptions = (_a = {},
         deps: [Project.SDL],
         major_define: "SDL_NET_MAJOR_VERSION",
         minor_define: "SDL_NET_MINOR_VERSION",
-        patch_define: "SDL_NET_PATCHLEVEL",
+        patch_define: "(?:SDL_NET_MICRO_VERSION|SDL_NET_PATCHLEVEL)",
         header_paths: ["include/SDL3_net", "include/SDL2", "include"],
         header_filenames: ["SDL_net.h"],
         git_url: "https://github.com/libsdl-org/SDL_net.git",
@@ -1653,7 +1653,7 @@ exports.project_descriptions = (_a = {},
         deps: [Project.SDL, Project.SDL_ttf],
         major_define: "SDL_RTF_MAJOR_VERSION",
         minor_define: "SDL_RTF_MINOR_VERSION",
-        patch_define: "SDL_RTF_PATCHLEVEL",
+        patch_define: "(?:SDL_RTF_MICRO_VERSION|SDL_RTF_PATCHLEVEL)",
         header_paths: ["include/SDL3_rtf", "include/SDL2", "include"],
         header_filenames: ["SDL_rtf.h"],
         git_url: "https://github.com/libsdl-org/SDL_rtf.git",
@@ -1668,7 +1668,7 @@ exports.project_descriptions = (_a = {},
         deps: [Project.SDL],
         major_define: "SDL_TTF_MAJOR_VERSION",
         minor_define: "SDL_TTF_MINOR_VERSION",
-        patch_define: "SDL_TTF_PATCHLEVEL",
+        patch_define: "(?:SDL_TTF_MICRO_VERSION|SDL_TTF_PATCHLEVEL)",
         header_paths: ["include/SDL3_ttf", "include/SDL2"],
         header_filenames: ["SDL_ttf.h"],
         git_url: "https://github.com/libsdl-org/SDL_ttf.git",
diff --git a/src/version.ts b/src/version.ts
index f5e61b3..97d1412 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -297,7 +297,7 @@ export const project_descriptions: { [key in Project]: ProjectDescription } = {
     deps: [Project.SDL],
     major_define: "SDL_IMAGE_MAJOR_VERSION",
     minor_define: "SDL_IMAGE_MINOR_VERSION",
-    patch_define: "SDL_IMAGE_PATCHLEVEL",
+    patch_define: "(?:SDL_IMAGE_MICRO_VERSION|SDL_IMAGE_PATCHLEVEL)",
     header_paths: ["include/SDL3_image", "include/SDL2"],
     header_filenames: ["SDL_image.h"],
     git_url: "https://github.com/libsdl-org/SDL_image.git",
@@ -312,7 +312,7 @@ export const project_descriptions: { [key in Project]: ProjectDescription } = {
     deps: [Project.SDL],
     major_define: "SDL_MIXER_MAJOR_VERSION",
     minor_define: "SDL_MIXER_MINOR_VERSION",
-    patch_define: "SDL_MIXER_PATCHLEVEL",
+    patch_define: "(?:SDL_MIXER_MICRO_VERSION|SDL_MIXER_PATCHLEVEL)",
     header_paths: ["include/SDL3_mixer", "include/SDL2"],
     header_filenames: ["SDL_mixer.h"],
     git_url: "https://github.com/libsdl-org/SDL_mixer.git",
@@ -327,7 +327,7 @@ export const project_descriptions: { [key in Project]: ProjectDescription } = {
     deps: [Project.SDL],
     major_define: "SDL_NET_MAJOR_VERSION",
     minor_define: "SDL_NET_MINOR_VERSION",
-    patch_define: "SDL_NET_PATCHLEVEL",
+    patch_define: "(?:SDL_NET_MICRO_VERSION|SDL_NET_PATCHLEVEL)",
     header_paths: ["include/SDL3_net", "include/SDL2", "include"],
     header_filenames: ["SDL_net.h"],
     git_url: "https://github.com/libsdl-org/SDL_net.git",
@@ -342,7 +342,7 @@ export const project_descriptions: { [key in Project]: ProjectDescription } = {
     deps: [Project.SDL, Project.SDL_ttf],
     major_define: "SDL_RTF_MAJOR_VERSION",
     minor_define: "SDL_RTF_MINOR_VERSION",
-    patch_define: "SDL_RTF_PATCHLEVEL",
+    patch_define: "(?:SDL_RTF_MICRO_VERSION|SDL_RTF_PATCHLEVEL)",
     header_paths: ["include/SDL3_rtf", "include/SDL2", "include"],
     header_filenames: ["SDL_rtf.h"],
     git_url: "https://github.com/libsdl-org/SDL_rtf.git",
@@ -357,7 +357,7 @@ export const project_descriptions: { [key in Project]: ProjectDescription } = {
     deps: [Project.SDL],
     major_define: "SDL_TTF_MAJOR_VERSION",
     minor_define: "SDL_TTF_MINOR_VERSION",
-    patch_define: "SDL_TTF_PATCHLEVEL",
+    patch_define: "(?:SDL_TTF_MICRO_VERSION|SDL_TTF_PATCHLEVEL)",
     header_paths: ["include/SDL3_ttf", "include/SDL2"],
     header_filenames: ["SDL_ttf.h"],
     git_url: "https://github.com/libsdl-org/SDL_ttf.git",