From 485dedc8f305c9b86b359b8adba7d4705d74ff27 Mon Sep 17 00:00:00 2001 From: marco <49691247+marcoSchr@users.noreply.github.com> Date: Tue, 26 Aug 2025 19:51:54 +0200 Subject: [PATCH] Use `-std=gnu17` to allow building with gcc 15 gcc 15 uses C23 by default now. The project does not yet compile with C23. Thus we set the standard back to C17, as it was the default before --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f2bddd01..4e4d4468 100644 --- a/meson.build +++ b/meson.build @@ -351,7 +351,7 @@ linux_small_def = linux_def + {'CONFIG_SCREEN_WIDTH': '128', 'CONFIG_SCREEN_HE linux_mod17_src = linux_src + ui_src_module17 linux_mod17_def = linux_def + {'CONFIG_SCREEN_WIDTH': '128', 'CONFIG_SCREEN_HEIGHT': '64', 'CONFIG_PIX_FMT_BW': ''} -linux_c_args = ['-ffunction-sections', '-fdata-sections'] +linux_c_args = ['-ffunction-sections', '-fdata-sections', '-std=gnu17'] linux_cpp_args = ['-ffunction-sections', '-fdata-sections', '-std=c++14'] linux_l_args = ['-lm', '-lreadline']