[libc-commits] [libc] [libc][CPP] Define max_align_t (PR #94065)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri May 31 15:38:53 PDT 2024
================
@@ -16,6 +16,10 @@ namespace LIBC_NAMESPACE::cpp {
enum class byte : unsigned char {};
+// When built with clang, this will use the definition from the clang header
+// __stddef_max_align_t.h
+using ::max_align_t LIBC_USING_IF_EXISTS;
----------------
michaelrj-google wrote:
is this going to work? I don't think the compiler's `stddef.h` is included in this file so I'm not sure where this would be coming from.
https://github.com/llvm/llvm-project/pull/94065
More information about the libc-commits
mailing list