From a77acef3583adfb9dba6ac6c581bffb4301a2ac6 Mon Sep 17 00:00:00 2001 From: Er2 Date: Sun, 10 Jul 2022 15:26:12 +0300 Subject: [PATCH] Fix compilation error on old SDL2 library. --- .gitignore | 10 ++++++++++ src/modules/system/sdl/System.cpp | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index af672d1b0..77655ee34 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,13 @@ +# automake products +/config.h +/config.h.in +/config.log +/config.status +/configure +/configure-modules-post.ac +/configure-modules-pre.ac +/configure.ac + /extra/reshax/Release/ /extra/reshax/Debug/ /extra/reshax/resources.h diff --git a/src/modules/system/sdl/System.cpp b/src/modules/system/sdl/System.cpp index df0c476cf..537830903 100644 --- a/src/modules/system/sdl/System.cpp +++ b/src/modules/system/sdl/System.cpp @@ -25,9 +25,12 @@ // SDL #include #include -#include #include +#if SDL_VERSION_ATLEAST(2, 0, 14) +#include +#endif + namespace love { namespace system