diff --git a/slirp_glue/config-host.h b/slirp_glue/config-host.h index 9bb557ce4..5de159284 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__ < 202311L typedef int bool; #endif +#endif #ifdef _MSC_VER #include #else @@ -54,3 +56,4 @@ int qemu_recv (int s, void *buf, size_t len, int flags); #define error_report(...) fprintf(stderr, __VA_ARGS__) #endif +