From 0a6cee2343d4af219b0fddf68c635b528f23e4b1 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 30 Jul 2023 14:59:47 +0200
Subject: [PATCH] version: SDL2-compat development version is 2.28.50
---
CMakeLists.txt | 2 +-
include/SDL2/SDL_version.h | 4 ++--
src/Makefile.darwin | 2 +-
src/Makefile.linux | 2 +-
src/Makefile.w32 | 2 +-
src/sdl2_compat.c | 4 ++--
src/version.rc | 8 ++++----
7 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f8dadca..64d020c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@
# cmake -DSDL3_INCLUDE_DIRS=/opt/SDL3/include [other stuff ....]
cmake_minimum_required(VERSION 3.0.0...3.5)
-project(sdl2_compat VERSION 2.90.0 LANGUAGES C)
+project(sdl2_compat VERSION 2.28.50 LANGUAGES C)
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
set(SDL2COMPAT_SUBPROJECT OFF)
diff --git a/include/SDL2/SDL_version.h b/include/SDL2/SDL_version.h
index 049719f..457fcea 100644
--- a/include/SDL2/SDL_version.h
+++ b/include/SDL2/SDL_version.h
@@ -58,8 +58,8 @@ typedef struct SDL_version
/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
*/
#define SDL_MAJOR_VERSION 2
-#define SDL_MINOR_VERSION 29
-#define SDL_PATCHLEVEL 0
+#define SDL_MINOR_VERSION 28
+#define SDL_PATCHLEVEL 50
/**
* Macro to determine SDL version program was compiled against.
diff --git a/src/Makefile.darwin b/src/Makefile.darwin
index 0d983b6..8a807d7 100644
--- a/src/Makefile.darwin
+++ b/src/Makefile.darwin
@@ -20,7 +20,7 @@ CFLAGS = -fPIC -fvisibility=hidden -O3 -Wall
LDFLAGS = -dynamiclib -Wl,-undefined,error -Wl,-single_module
#LDFLAGS+= -Wl,-headerpad_max_install_names
LDFLAGS+= -Wl,-install_name,"/usr/local/lib/$(DYLIB)"
-LDFLAGS+= -Wl,-compatibility_version,9001.0 -Wl,-current_version,9001.0
+LDFLAGS+= -Wl,-compatibility_version,2801.50 -Wl,-current_version,2801.50
LDLIBS = -Wl,-framework,AppKit
# this is needed for x86_64 - cross-gcc might not add it.
#LDLIBS += -Wl,-lbundle1.o
diff --git a/src/Makefile.linux b/src/Makefile.linux
index b1f6a2d..86ce95b 100644
--- a/src/Makefile.linux
+++ b/src/Makefile.linux
@@ -14,7 +14,7 @@ LDFLAGS = -shared -Wl,-soname,libSDL2-2.0.so.0
LDFLAGS+= -Wl,--no-undefined
LDLIBS = -ldl
-SHLIB = libSDL2-2.0.so.0.2900.0
+SHLIB = libSDL2-2.0.so.0.2800.50
OBJ = sdl2_compat.o dynapi/SDL_dynapi.o
diff --git a/src/Makefile.w32 b/src/Makefile.w32
index c03c164..f3db753 100644
--- a/src/Makefile.w32
+++ b/src/Makefile.w32
@@ -5,7 +5,7 @@
!endif
DLLNAME = SDL2
-VERSION = 2.90.0
+VERSION = 2.28.50
# change SDL2INC to point to the SDL2 headers
SDL2INC = include
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 1cd13db..c926c5c 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -57,8 +57,8 @@ This breaks the build when creating SDL_ ## DisableScreenSaver
* to be high by default, and usually doesn't change (and maybe never changes).
* The number might increment past 90 if there are a ton of releases.
*/
-#define SDL2_COMPAT_VERSION_MINOR 90
-#define SDL2_COMPAT_VERSION_PATCH 0
+#define SDL2_COMPAT_VERSION_MINOR 28
+#define SDL2_COMPAT_VERSION_PATCH 50
#ifndef SDL2COMPAT_REVISION
#define SDL2COMPAT_REVISION "SDL-2." STRINGIFY(SDL2_COMPAT_VERSION_MINOR) "." STRINGIFY(SDL2_COMPAT_VERSION_PATCH) "-no-vcs"
diff --git a/src/version.rc b/src/version.rc
index 63d9ab2..ee4c8e0 100644
--- a/src/version.rc
+++ b/src/version.rc
@@ -3,8 +3,8 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 2,90,0,0
- PRODUCTVERSION 2,90,0,0
+ FILEVERSION 2,28,50,0
+ PRODUCTVERSION 2,28,50,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
FILEOS 0x40004L
@@ -17,12 +17,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "\0"
VALUE "FileDescription", "SDL\0"
- VALUE "FileVersion", "2, 90, 0, 0\0"
+ VALUE "FileVersion", "2, 28, 50, 0\0"
VALUE "InternalName", "SDL\0"
VALUE "LegalCopyright", "Copyright (C) 2023 Sam Lantinga\0"
VALUE "OriginalFilename", "SDL.dll\0"
VALUE "ProductName", "Simple DirectMedia Layer 2.0 wrapper\0"
- VALUE "ProductVersion", "2, 90, 0, 0\0"
+ VALUE "ProductVersion", "2, 28, 50, 0\0"
END
END
BLOCK "VarFileInfo"