From 308e9e39f214aad825ec2003fc1961e6ef703768 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 29 Dec 2022 08:11:32 +0300
Subject: [PATCH] sdl3_include_wrapper.h: disable SDL_oldnames.h
build tested against SDL3 commit 29ba5f5d6426f36ee84304dc8a0e111416450aab
never revisions fail with or without this patch
---
src/sdl3_include_wrapper.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index 23503c4..e9d8b6d 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -28,6 +28,11 @@
#ifndef INCL_SDL3_INCLUDE_WRAPPER_H
#define INCL_SDL3_INCLUDE_WRAPPER_H
+#undef SDL_ENABLE_OLD_NAMES
+#ifndef SDL_DISABLE_OLD_NAMES
+#define SDL_DISABLE_OLD_NAMES
+#endif
+
#define SDL_GetVersion IGNORE_THIS_VERSION_OF_SDL_GetVersion
#define SDL_GetRevision IGNORE_THIS_VERSION_OF_SDL_GetRevision
#define SDL_GetRevisionNumber IGNORE_THIS_VERSION_OF_SDL_GetRevisionNumber