llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: David Tenty (daltenty) <details> <summary>Changes</summary> 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) --- Full diff: https://github.com/llvm/llvm-project/pull/187380.diff 1 Files Affected: - (modified) clang/lib/Headers/endian.h (+1-1) ``````````diff 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 `````````` </details> https://github.com/llvm/llvm-project/pull/187380 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
