From 51131d4ea3edcd331c3272ab1067c454ccd5d02a Mon Sep 17 00:00:00 2001 From: tkbits <96506466+2kbits@users.noreply.github.com> Date: Wed, 25 Feb 2026 02:01:30 -0800 Subject: [PATCH 1/2] Tell cmake to use c99 to fix build with GCC 15 GCC 15 uses c23 instead of c17 by default. Apparently c23 is not backwards compatible to older C standards... This prevented me from easily compuling simh so I added a setting to tell cmake to use c99 fixing the compiling errors. Fixes #490 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 120da3960..e644e3ae4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,6 +82,9 @@ endif() project(simh VERSION "${SIMH_VERSION}" LANGUAGES C CXX) +## Tell cmake we need c99 because GCC 15 defaults to c23 which breaks things. +set(CMAKE_C_STANDARD 99) + include(vcpkg-setup) include(GNUInstallDirs) From 7e338e81ec42760597197718a4c957065f630a58 Mon Sep 17 00:00:00 2001 From: tkbits <96506466+2kbits@users.noreply.github.com> Date: Wed, 25 Feb 2026 02:21:46 -0800 Subject: [PATCH 2/2] Add missing package to dependency checker for arch linux I added the missing dependency sdl2_ttf for arch linux in the dependency checker as after using the checker I still needed to manually install that to compile. --- .travis/deps.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis/deps.sh b/.travis/deps.sh index a510c5263..637ab923e 100755 --- a/.travis/deps.sh +++ b/.travis/deps.sh @@ -17,6 +17,7 @@ install_arch_linux() { sudo pacman -S --noconfirm mesa sudo pacman -S --noconfirm libsm sudo pacman -S --noconfirm cmake + sudo pacman -S --noconfirm sdl2_ttf }