From 579bfeabe5cf7774362a0b0abc5f28a5583df770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20B=C3=A1nffy?= Date: Fri, 24 Oct 2025 16:42:36 +0100 Subject: [PATCH] Skip redefinition of bool if running GCC >= 15. Fixes #490. --- slirp_glue/config-host.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slirp_glue/config-host.h b/slirp_glue/config-host.h index 9bb557ce4..e7e5388a7 100644 --- a/slirp_glue/config-host.h +++ b/slirp_glue/config-host.h @@ -12,7 +12,9 @@ typedef int SOCKET; #endif #ifndef __cplusplus -typedef int bool; + #if !defined(__GNUC__) || (__GNUC__ < 15) + typedef int bool; + #endif #endif #ifdef _MSC_VER #include