Skip to content

Commit

Permalink
Fix test.cpp for SDL3
Browse files Browse the repository at this point in the history
  • Loading branch information
learn-more committed Apr 18, 2024
1 parent 3ead449 commit d595cf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d595cf3

Please sign in to comment.