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
This commit is contained in:
marco 2025-08-26 19:51:54 +02:00 committed by silseva
parent 76b8d191b0
commit 485dedc8f3
1 changed files with 1 additions and 1 deletions

View File

@ -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_src = linux_src + ui_src_module17
linux_mod17_def = linux_def + {'CONFIG_SCREEN_WIDTH': '128', 'CONFIG_SCREEN_HEIGHT': '64', 'CONFIG_PIX_FMT_BW': ''} 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_cpp_args = ['-ffunction-sections', '-fdata-sections', '-std=c++14']
linux_l_args = ['-lm', '-lreadline'] linux_l_args = ['-lm', '-lreadline']