From 0477c3d029818e01cd714f3725f352ed7c581cb1 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 3 Nov 2026 11:09:17 -0500 Subject: [PATCH] Fix native build with C23 boolean keywords Use stdbool.h for C99 and newer to avoid redefining bool, true, and false under C23. Preserve the existing fallback for older C compilers. --- src/native/unix/native/jsvc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/unix/native/jsvc.h b/src/native/unix/native/jsvc.h index c4af927a..98830930 100644 --- a/src/native/unix/native/jsvc.h +++ b/src/native/unix/native/jsvc.h @@ -24,8 +24,8 @@ #include #include -/* Definitions for booleans */ -#ifdef OS_DARWIN +/* Use standard booleans where available, including C23 keywords. */ +#if defined(OS_DARWIN) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) #include #else typedef enum {