From bb3e2ef7090e39c932f059a2fbbb671c303cff3b Mon Sep 17 00:00:00 2001 From: Gareth Potter Date: Fri, 16 Oct 2026 10:24:22 +0100 Subject: [PATCH] fix include ordering in atomic.c on macOS (case-insensitive filesystem) --- libretro/atomic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretro/atomic.c b/libretro/atomic.c index a1255d5bf4..747cecb31d 100644 --- a/libretro/atomic.c +++ b/libretro/atomic.c @@ -39,10 +39,12 @@ * symbols are attached with asm labels. */ +/* string.h first: on case-insensitive file systems it can pull in Apple's + Strings.h -> MacTypes.h, whose true/false enum clashes with stdbool.h. */ +#include #include #include #include -#include #ifndef __GCC_ATOMIC_TEST_AND_SET_TRUEVAL #define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1