diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/sdl2logger.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/sdl2logger.cpp b/src/utils/sdl2logger.cpp index 97a6200df..7f7813521 100644 --- a/src/utils/sdl2logger.cpp +++ b/src/utils/sdl2logger.cpp @@ -37,6 +37,12 @@ PRAGMA48(GCC diagnostic pop) message.append(msg); \ break +// before 2.0.4 this names not exists +#if !SDL_VERSION_ATLEAST(2, 0, 4) +#define SDL_AssertState SDL_assert_state +#define SDL_AssertData SDL_assert_data +#endif // !SDL_VERSION_ATLEAST(2, 0, 4) + static void logCallback(void *userData A_UNUSED, int category, SDL_LogPriority priority, |