From 0cf1e1c6c1b8ea716b3a1cae1cfca85eaccb3902 Mon Sep 17 00:00:00 2001 From: Marius DAVID Date: Thu, 8 Oct 2026 19:21:45 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Use=20native=20bool=20from=20C23=20(can?= =?UTF-8?q?=E2=80=99t=20override=20it)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- headers/pmdsky.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headers/pmdsky.h b/headers/pmdsky.h index e43dfdca..9dea77ec 100644 --- a/headers/pmdsky.h +++ b/headers/pmdsky.h @@ -48,8 +48,12 @@ typedef short int16_t; typedef int int32_t; typedef long long int64_t; +// C23 make bool a keyword that can’t be overwritten +#if __STDC_VERSION__ < 202311L // Define the bool type to be 1 byte typedef uint8_t bool; +#endif +ASSERT_SIZE(bool, 1); // Define size_t for convenience typedef unsigned long size_t; From 693e5ca765fe45df1d84a89712f4aee14f49f7f9 Mon Sep 17 00:00:00 2001 From: UsernameFodder <93669634+UsernameFodder@users.noreply.github.com> Date: Sat, 24 Oct 2026 13:40:42 -0500 Subject: [PATCH 2/2] Update headers/pmdsky.h --- headers/pmdsky.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/pmdsky.h b/headers/pmdsky.h index 9dea77ec..0a13b409 100644 --- a/headers/pmdsky.h +++ b/headers/pmdsky.h @@ -48,7 +48,7 @@ typedef short int16_t; typedef int int32_t; typedef long long int64_t; -// C23 make bool a keyword that can’t be overwritten +// C23 made `bool` a keyword that can't be overwritten #if __STDC_VERSION__ < 202311L // Define the bool type to be 1 byte typedef uint8_t bool;