From ed0e195154b3809117541db07db4b37c750e494b Mon Sep 17 00:00:00 2001 From: Raphael Hoefler Date: Mon, 27 Oct 2025 09:43:55 +0100 Subject: [PATCH 1/2] Fix bug in bool typedef related to slirp_glue --- slirp_glue/config-host.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slirp_glue/config-host.h b/slirp_glue/config-host.h index 9bb557ce4..92ade35c3 100644 --- a/slirp_glue/config-host.h +++ b/slirp_glue/config-host.h @@ -12,8 +12,10 @@ typedef int SOCKET; #endif #ifndef __cplusplus +#if __STDC_VERSION__ >= 202300L typedef int bool; #endif +#endif #ifdef _MSC_VER #include #else From 76d274fa5dc62a1ada9dc90e55bd151f89207809 Mon Sep 17 00:00:00 2001 From: Raphael Hoefler Date: Mon, 27 Oct 2025 09:57:09 +0100 Subject: [PATCH 2/2] Fix bug in bool typedef related to slirp_glue --- slirp_glue/config-host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slirp_glue/config-host.h b/slirp_glue/config-host.h index 92ade35c3..a1259572f 100644 --- a/slirp_glue/config-host.h +++ b/slirp_glue/config-host.h @@ -12,7 +12,7 @@ typedef int SOCKET; #endif #ifndef __cplusplus -#if __STDC_VERSION__ >= 202300L +#if __STDC_VERSION__ < 202300L typedef int bool; #endif #endif