Skip to content

Commit b6fbe98

Browse files
committed
compilation fix 4
1 parent 95b610f commit b6fbe98

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/deb-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
fakeroot \
3838
lintian \
3939
zlib1g-dev \
40-
libsdl2-dev \
41-
libsdl2-mixer-dev \
40+
libsdl3-dev \
41+
libsdl3-mixer-dev \
4242
libxmp-dev \
4343
pkg-config \
4444
licensecheck

src/logger.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ void Logger::log(Level level, const char *tag, const char *format, ...)
4343
va_list args;
4444
va_start(args, format);
4545
#if defined(__ANDROID__) && defined(SDL_MAJOR_VERSION)
46-
SDL_LogPriority priority = level == INFO ? SDL_LOG_PRIORITY_INFO : level == WARN ? SDL_LOG_PRIORITY_WARN
47-
: level == ERROR ? SDL_LOG_PRIORITY_ERROR
48-
: SDL_LOG_PRIORITY_CRITICAL;
46+
SDL_LogPriority priority = level == L_INFO ? SDL_LOG_PRIORITY_INFO : level == L_WARN ? SDL_LOG_PRIORITY_WARN
47+
: level == L_ERROR ? SDL_LOG_PRIORITY_ERROR
48+
: SDL_LOG_PRIORITY_CRITICAL;
4949
SDL_LogMessageV(SDL_LOG_CATEGORY_APPLICATION, priority, format, args);
5050
#elif defined(__ANDROID__)
51-
int priority = level == INFO ? ANDROID_LOG_INFO : level == WARN ? ANDROID_LOG_WARN
52-
: level == ERROR ? ANDROID_LOG_ERROR
53-
: ANDROID_LOG_FATAL;
51+
int priority = level == L_INFO ? ANDROID_LOG_INFO : level == L_WARN ? ANDROID_LOG_WARN
52+
: level == L_ERROR ? ANDROID_LOG_ERROR
53+
: ANDROID_LOG_FATAL;
5454
__android_log_vprint(priority, tag, format, args);
5555
#else
5656
FILE *out = m_output ? m_output : (level == L_ERROR || level == L_FATAL) ? stderr

0 commit comments

Comments
 (0)