[libc-commits] [libc] [libc] Avoid host header collisions in full builds (-nostdinc) (PR #187025)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Tue Mar 17 10:56:46 PDT 2026
================
@@ -11,7 +11,11 @@
#ifdef LIBC_FULL_BUILD
#include "hdr/types/size_t.h"
+#ifdef __cplusplus
+extern "C" void *aligned_alloc(size_t, size_t) noexcept;
----------------
vonosmas wrote:
I think our proxy headers are only used by implementations (which is C++), so we can always use noexcept here? E.g. that's what we do in libc/hdr/func/free.h
https://github.com/llvm/llvm-project/pull/187025
More information about the libc-commits
mailing list