From 1363aefd0b84c0ceb58cb3af1006649106cbff46 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Mon, 27 Jul 2026 12:15:49 +0000 Subject: [PATCH 3/3] build: exempt Apple from __STDC_UTF_32__ check in test/example Same rationale as foot's own char32.c/main.c: Apple Clang never defines __STDC_UTF_32__ since Darwin's libc has no native for the compiler to recognize, even on a platform-provided char32_t shim that genuinely is UTF-32. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01U6fuL1PtRJHhr97gAGyS1h --- example/main.c | 2 +- test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/main.c b/example/main.c index 57799b7..87486e5 100644 --- a/subprojects/fcft/example/main.c +++ b/subprojects/fcft/example/main.c @@ -25,7 +25,7 @@ #define ALEN(v) (sizeof(v) / sizeof((v)[0])) -#if !defined(__STDC_UTF_32__) || !__STDC_UTF_32__ +#if (!defined(__STDC_UTF_32__) || !__STDC_UTF_32__) && !defined(__APPLE__) #error "char32_t does not use UTF-32" #endif diff --git a/test.c b/test.c index fd9d6e3..6c99d38 100644 --- a/subprojects/fcft/test.c +++ b/subprojects/fcft/test.c @@ -7,7 +7,7 @@ #define ALEN(v) (sizeof(v) / sizeof((v)[0])) -#if !defined(__STDC_UTF_32__) || !__STDC_UTF_32__ +#if (!defined(__STDC_UTF_32__) || !__STDC_UTF_32__) && !defined(__APPLE__) #error "uint32_t does not use UTF-32" #endif