Author: David Tenty
Date: 2026-03-18T23:58:47-04:00
New Revision: 2e6740541ba908100a37151cb3892c1d47b3a3ba

URL: 
https://github.com/llvm/llvm-project/commit/2e6740541ba908100a37151cb3892c1d47b3a3ba
DIFF: 
https://github.com/llvm/llvm-project/commit/2e6740541ba908100a37151cb3892c1d47b3a3ba.diff

LOG: [clang][headers][endian.h] include_next in freestanding (#187380)

Remove the `__STDC_HOSTED__` check to allow us to also include the
platform header instead in freestanding mode

Added: 
    

Modified: 
    clang/lib/Headers/endian.h

Removed: 
    


################################################################################
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

Reply via email to