From a7b8aa0f4fca5d42abae228430cf14b2a9feb0b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= jaakko.keranen@iki.fi
Date: Fri, 25 Dec 2020 08:10:23 +0200
Subject: [PATCH 1/1] Compiling with SDL versions earlier than 2.0.14
src/app.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/app.c b/src/app.c
index e1b981d8..cc067571 100644
--- a/src/app.c
+++ b/src/app.c
@@ -54,7 +54,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#include <SDL_render.h>
#include <SDL_timer.h>
#include <SDL_video.h>
-#include <SDL_misc.h>
#include <SDL_version.h>
#include <stdio.h>
@@ -67,6 +66,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#if defined (iPlatformMsys)
#endif
+#if SDL_VERSION_ATLEAST(2, 0, 14)
+# include <SDL_misc.h>
+#endif
iDeclareType(App)
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).