mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-21 04:35:23 +08:00
First pass at changing SDL 2.0 to SDL 3.0
This commit is contained in:
@@ -29,10 +29,10 @@ main(int argc, char *argv[])
|
||||
/* Enable standard application logging */
|
||||
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
SDL_Log("Compiled with SDL 2.0 or newer\n");
|
||||
#if SDL_VERSION_ATLEAST(3, 0, 0)
|
||||
SDL_Log("Compiled with SDL 3.0 or newer\n");
|
||||
#else
|
||||
SDL_Log("Compiled with SDL older than 2.0\n");
|
||||
SDL_Log("Compiled with SDL older than 3.0\n");
|
||||
#endif
|
||||
SDL_VERSION(&compiled);
|
||||
SDL_Log("Compiled version: %d.%d.%d (%s)\n",
|
||||
|
||||
Reference in New Issue
Block a user