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);