From d595cf31e79ab4a7c579d24632aa0387982b7a36 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Thu, 18 Apr 2024 20:41:23 +0200 Subject: [PATCH] Fix test.cpp for SDL3 --- src/test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test.cpp b/src/test.cpp index a80a49ba8..adcc90d9a 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -84,8 +84,13 @@ int main(int argc, char **argv) vfunc SDL2 = [](strs &c, strs &l) { +#if SDL_VERSION_ATLEAST(3, 0, 0) + SDL_Version compiled; + SDL_Version linked; +#else SDL_version compiled; SDL_version linked; +#endif SDL_VERSION(&compiled); SDL_GetVersion(&linked);