https://github.com/daltenty created https://github.com/llvm/llvm-project/pull/187380
Remove the `__STDC_HOSTED__` check to allow us to also include the platform header instead in freestanding mode (as suggested in https://github.com/llvm/llvm-project/pull/186032/changes#r2946278425) >From 7a31dc5342031ee369f2be0b52e43d236e893ae4 Mon Sep 17 00:00:00 2001 From: David Tenty <[email protected]> Date: Wed, 18 Mar 2026 17:02:16 -0400 Subject: [PATCH] [clang][headers][endian.h] include_next in freestanding Remove the __STDC_HOSTED__ check to allow us include the platform header in freestanding --- clang/lib/Headers/endian.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Headers/endian.h b/clang/lib/Headers/endian.h index 322232903580f..b2ad3c16710d7 100644 --- a/clang/lib/Headers/endian.h +++ b/clang/lib/Headers/endian.h @@ -10,7 +10,7 @@ #define __CLANG_ENDIAN_H // If the system has an endian.h, let's use that instead. -#if __STDC_HOSTED__ && __has_include_next(<endian.h>) +#if __has_include_next(<endian.h>) #include_next <endian.h> #else _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
